Categories


Description :

Generates a random number in the given range.

Uses :

Use this to generate a random number. The number generated may include the lower limit of the range but will not include the upper limit. The values may be entered directly, provided from a variable or via another expression.

Example :

This code sets the value of the variable "Speed" to a random number from 5(inclusive) to 10(exclusive). The values that can be got by this are decimal numbers starting from 5.0 and going upto just below 10.