Hi,
I noticed that if I run the following in a procedure editor I get the expected output:
MESSAGE RANDOM(1,9999)
VIEW-AS ALERT-BOX TITLE PROGRAM-NAME(1).
which is a random number between 1 and 999.
If I run the same from within Architect I get the same number every time! According to the Progress help I need to use the -rand n startup parameter:
"This function returns a number from a pseudorandom sequence of numbers rather than a truly random sequence.
The Alternate Random Number Generator (-rand) parameter determines whether the same sequence of random numbers is generated for each session. For information on this parameter, see OpenEdge Deployment: Startup Command and Parameter Reference."
I've placed the -rand with the value 1 in the statup parameters in my Architect run configurations but no joy.
Have I missed something here?
Thanks,
Mark.
I believe you want -rand 2
Hi,
I noticed that if I run the following in a procedure editor I get the expected output:
MESSAGE RANDOM(1,9999)
VIEW-AS ALERT-BOX TITLE PROGRAM-NAME(1).
which is a random number between 1 and 999.
If I run the same from within Architect I get the same number every time! According to the Progress help I need to use the -rand n startup parameter:
"This function returns a number from a pseudorandom sequence of numbers rather than a truly random sequence.
The Alternate Random Number Generator (-rand) parameter determines whether the same sequence of random numbers is generated for each session. For information on this parameter, see OpenEdge Deployment: Startup Command and Parameter Reference."
I've placed the -rand with the value 1 in the statup parameters in my Architect run configurations but no joy.
Have I missed something here?
Thanks,
Mark.
Flag this post as spam/abuse.
Sorry, typo on my part I meant -rand 2. However, this seems to have no effect. I've seen other posts on here about different random number generation in the 4GL. Should I be looking at these rather than the built in RANDOM function.
Sorry, typo on my part I meant -rand 2. However, this seems to have no effect. I've seen other posts on here about different random number generation in the 4GL. Should I be looking at these rather than the built in RANDOM function.
Flag this post as spam/abuse.
Yeah it's definately in there! I can get this to work once if I set my Run Configuration to use the current AVM and not spawn a new one but it then hangs!
Yeah it's definately in there! I can get this to work once if I set my Run Configuration to use the current AVM and not spawn a new one but it then hangs!
Flag this post as spam/abuse.
Unfortunately this is within OpenEdge 10.2A.05. I'm pretty sure this is no longer supported.
We're due to goto 11X shortly however.
fyi, -rand 2 has been there since version 6.
[quote user="MBeynon"]
Unfortunately this is within OpenEdge 10.2A.05. I'm pretty sure this is no longer supported.
[/quote]
Retired releases still get support, as the Product Lifecycle states:
"Although Service Packs and Hot Fixes are not available for Retired products Progress will provide commercially reasonable efforts to resolve customer issues and answer customer questions on Retired Phase products covered under maintenance. However, the knowledge and skills required to resolve issues on Retired Phase products is NOT guaranteed "
[quote user="MBeynon"]
We're due to goto 11X shortly however.