We have an application which needs to select a random row from about 15000 rows.
we are getting the value from
ll_row = Rand(ll_rowcount)
During repeated testing Ive noticed a unexpected high frequency of specific numbers (like 993) which defy the usual odds.
I am curious if anyone else has worked extensively with Rand in PB2017R3 and had similar experiences(or the contrary)
Best
Glenn Barber
If ll_rowcount is the same between two runs, the Random number sequence will be the same.
ll_row = Rand(ll_rowcount) successively that I will get the name number?? Or are you saying that if I run Rand(ll_rowcount) repeatedly in two different programs that the sequence each program returns on successive calls will be the same if ll_rowcunt is the same?
The Radomize command resets the internal counters. You could use this command instead of Rand() or execute it every once in a while to reset the internal mechanisms before using Rand().
Regards ... Chris