I’m using a combination of Randomize -1 and Rnd() to randomly select documents in a database for QC purposes. Everything works just fine except for one thing: While attempting to randomly select documents within a specific category where, for instance, I want a 10% sample, Rnd() will repeat numbers. This means that a document may be randomly selected twice, thus not achieving the sample size I want. Is there a way I can prohibit the Rnd() function from returning the same number twice?
Subject: From the online help…
“If you use Randomize with an argument and then repeatedly call Rnd (with no arguments), LotusScript returns the same sequence of random numbers every time you execute the script. The particular sequence of random numbers generated from a given seed depends on the platform where you are running LotusScript.If you use Randomize without an argument, LotusScript generates a different sequence of numbers each time you execute the script.”