util.Math.srand

Initializes the pseudo-random numbers generator.

Syntax

util.Math.srand()

Usage

The srand() function initializes the pseudo-random numbers generator. It must be called before subsequent calls to the rand() function. If you do not call the srand() function, the rand() function will generate the same sequence of numbers for every program execution.