Knowledge Base

Random in Range Block

“Nothing’s random. Even if it looks that way, it’s just because you don’t know the causes.”
Johnny Rich, The Human Script

Actually, you can apply some randomness to your program by adding the random in range block. When used in tandem with a numerical data block, this block will generate a number (decimal) between 0 and the value of the numerical data block. 

Example Program

This program prints a random number between 0 and 10 to the console: 


Parameter Description Compatible Blocks Range
Random in Range

Generates a random number


0 to ∞


Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.

Powered by Zendesk