RND
Format: var = RND or var = RND (expr)
Supported by: COMX BASIC V1.00, Floating Point BASIC 2.2, Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0, Quest Super BASIC 1.4, 3.0, 5.0 and 6.0, RCA BASIC3 V1.1, Telmac SBASIC v 24.3
Similar commands: -
The RND function returns a random floating-point number greater than or equal to zero and less than or equal to one.
The RND (expr) function returns a random integer number greater than or equal to zero and less than the value of the expression. However, if the random integer number generated is assigned to a variable, the variable must be defined as an integer first, (e.g. DEFINT A).