Randomize Procedure

Applies to TestComplete 14.40, last modified on April 22, 2021

The Randomize procedure initializes the random number generator with a random value obtained from the system clock.

Declaration

Randomize()
Result     None  

Description

Initializes the random number generator with a random value obtained from the system clock. If Randomize is never called, Random functions (see Random) will always generate the same "random" numbers. Randomize should be called once. After that, calls to Random can be performed.

Note: Another way to initiate the random number generator is to assign a value to the RandSeed variable.

See Also

DelphiScript - List of Supported Routines and Variables
Random

Highlight search results