Kbase P13191: Generating random numbers using default random number generator are not truly random
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/13/2007 |
|
Status: Verified
FACT(s) (Environment):
All Supported Operating Systems
Progress 9.x
OpenEdge 10.x
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:
This is the expected behavior. By default, the original random number generator always generates the same random sequence; that is, the numbers that it generates are random, but each time a session starts, it generates the same set of random numbers as it did in the last session.
FIX:
To generate a different set of random numbers for each session, specify the Alternate Random Number Generator (-rand) Client Session Startup Parameter in the session's startup command. Please note that adding this parameter for BROKER startup file will NOT pass the parameter to all CLIENT sessions.