The same sequence of random numbers is generated each time the program is run unless the random number generator is reseeded (see RANDOMIZE statement). If x is equal to zero, then the last number is repeated.
If x is greater than 0, or if x is omitted, the next random number in the sequence is generated.
To get a random number within the range of zero through n, use the following formula:
The random number generator may be seeded by using a negative value for x.
10 FOR I=1 TO 5
20 PRINT INT(RND*101);
53 30 31 51 5
Generates five pseudo-random numbers within the range of 0-100.
All Frank Sinatra recordings, All Beatles albums, All solo albums from John Lennon, Paul McCartney, George Harrison and Ringo Starr, All Beatles songs, List of Platinum selling albums, Database with hits from 1950 to 1999.
Sought after DLL files, Nutworks magazine (retro), Worldwide ISO and TLD codes, File extensions database, The Hackers dictionary, Free software for the Atari, Amiga and Macintosh, Nokia smartphone, PocketPC, List of all BASIC programming language commands, List of all DOS commands, Free Advanced Bash-Scripting Guide (Linux-Unix)