Consultor Eletrônico



Kbase 15657: Generating different random numbers between sessions
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Generating different random numbers between sessions

If you use the progress RANDOM function, you get the same "random"
numbers in different sessions. For example, the following program
will always deliver the sequence beginning with 9,14,10,15,14...

def var i as integer.
do i = 1 to 20:
display random (1,20).
down.
end.

(The sequence may vary by platform, but it is repeatable on each
platform).

This is not acceptable in some random number applications. In version
7, if you set the -rand startup option to 2, you will get a more
truly random result, in that it will be different for different
sessions.

Progress Software Technical Support Note # 15657