JoseKreif
Member
Progress OpenEdge 10.2B
Platform: Redhat
I'm noticing that the random() function seems to be seeded with a set value when you first connect to the database.
For example,
Produces
If you disconnect from the database, and then reconnect and relaunch the program you get the exact same result.
I guess I'm trying to understand why and what would the solution be?
Platform: Redhat
I'm noticing that the random() function seems to be seeded with a set value when you first connect to the database.
For example,
Code:
def var i as int no-undo.
do i = 1 to 10:
display random(1,100) with no-box 10 down.
down.
end.
Produces
Code:
29
34
10
35
34
70
4
70
82
33
If you disconnect from the database, and then reconnect and relaunch the program you get the exact same result.
I guess I'm trying to understand why and what would the solution be?
Last edited: