Forum

Logic nodes, math random numbers

03 June 2016 21:53
I'm just trying to create a random number between 1 and 3 (an integer). can I force it to integer?

Also does Operand 1 and Operand 2 need to be 1 and 2 respectively or 0 and 4 I'm a little confused by the description in the doc.

The way I currently have this setup it doesn't seem to be triggering one of the three routs.

Thanks,

Brian
03 June 2016 22:27
Hi Brian,

The random node generates floats so you can compare them and set a new integer variable accordingly.
Please take a look at my node setup:



P.S. Gratz on Webby!
The Founder | Twitter | Facebook | Linkedin
03 June 2016 22:57
Thanks, I'll try this and thanks for the Gratz
07 June 2016 21:31
Hey Yuri,

How about some keyboard control nodes for the next build - I'm really loving the logic nodes.

Brian
07 June 2016 22:10
I'll drop you a line.
The Founder | Twitter | Facebook | Linkedin
07 June 2016 22:14
Cool, have you seen these?

http://blenderartists.org/forum/showthread.php?388143-WIP-Blender-Plugin-BGE-Logic-nodes-Alpha

Brian
08 June 2016 14:50
have you seen these?
Nice! Good to see nodes everywhere.
The Founder | Twitter | Facebook | Linkedin
 
Please register or log in to leave a reply.