This block works for both EV3 Robot and Ruby Robot!
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.
This program prints a random number between 0 and 10 to the console:
|Random in Range||
Generates a random number
|0 to ∞|