Gets a random integer within the range of the specified minimum and maximum numbers.
This block can be used in place of any number. It works well for randomizing a sprite’s property or location.
Make a sprite of a random size.
The results of the race will change every time the project is run because the car and motorcycle will move a random number of pixels north each time the up arrow is pressed.
Name | Description |
---|---|
number (max) | The maximum number generated |
number (min) | The minimum number generated |
Found a bug in the documentation? Let us know at documentation@code.org