Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)
The RND function allows the generation of random numbers by a program. It takes the general form:
expression should evaluate to a numeric integer value or a runtime error will occur. The absolute value of expression is used by the function.
The function will return a random integer number between 0 and the value of expression-1.
An example of use is as:
FOR I=1 TO 20 CRT RND (100):", ": NEXT I
to display 20 random numbers in the inclusive range 0 to 99.
See also: ABS.
Go back to jBASE BASIC.
Go back to Programmers' Reference Guide