Name

rnd, rand — returns a random number between 0 and n - 1 inclusive

Synopsis

number rnd( in n integer);
 
number rand( in n integer);
 

Description

The rnd function returns a random number between zero and n - 1, inclusive.

rand is an alias for rnd and behaves identically.

Randomize initializes the random number generator.

The random number generator is initialized after the clock at first usage, so the produced sequences will be different each time unless specifically initialized.


© 1992 - OpenLink Software. All rights reserved.

Making Technology Work for You®