Rnd Procedure

Returns a random number between 0 and 32767 (0x7FFF).

Syntax

[ nResult = ] Rnd ()

The Rnd procedure syntax has the following parts:

 

Name

Type

Description

nResult

Short

Random result (0-32767)

Comments

The Randomize subroutine can be used to change the random seed in order to start a new sequence of random numbers.

Example

Randomize()

for i = 1 to 1000

ai[i] = Rnd()

Next

See Also

Randomize