Consultor Eletrônico



Kbase 43191: Generating random numbers using default random number generator are not truly random
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Solution ID: P13191

SYMPTOM(s):

Generating random numbers with the RANDOM function

Each time a session starts, the RANDOM function gives you the same set of numbers from the last session

CAUSE:

The default algorithm used by the RANDOM function is designed to give random numbers within a single Progress session, however, each Progress session will get the same set of random numbers

FIX:

To get a true random number that will be random both within a Progress session and across multiple Progress sessions use the -rand startup parameter and specify a value of 2. This will use the Alternate Random Number Generator.