Returns a random number between 0 and 32767 (0x7FFF).
[ nResult = ] Rnd ()
The Rnd procedure syntax has the following parts:
|
Name |
Type |
Description |
|
nResult |
Short |
Random result (0-32767) |
The Randomize subroutine can be used to change the random seed in order to start a new sequence of random numbers.
Randomize()
for i = 1 to 1000
ai[i] = Rnd()
Next