RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Randomize Function

Initializes the random number generator with a random value.

Pascal
procedure Randomize;
C++
Randomize();

System

Randomize initializes the built-in random number generator with a random value (obtained from the system clock). The random number generator should be initialized by making a call to Randomize, or by assigning a value to RandSeed

Do not combine the call to Randomize in a loop with calls to the Random function. Typically, Randomize is called only once, before all calls to Random

 

RandG 

RandSeed 

Random

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!