Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 23 JUL 1998 08:48:45AM Mark Ford wrote:

I use "select 20 myfile" to create a select list of 10 records. This works fine but the command always selects the same 10 records. Is there a way to select "N" number of reccords such that the IDS are a true random selection. I use the option for selecting client recods to be auditted..

Any assistance will be very much appreciated.

Thanks, Mark


At 23 JUL 1998 09:31AM Aaron Kaplan wrote:

Select X File will always return the first X records that match the criteria.

There are a few ways you could do this. One is to generate a random number N, and run through the file taking every Nth key until you have the number of records you want.

Another way is to have a symbolic @ANS=RND( n ) and then search for

WHERE SYMFIELD=X

so you'll have a differing generating X in each select and each record will always return a different value.

[email protected]

Sprezzatura, Inc.

www.sprezzatura.com_zz.jpg


At 24 JUL 1998 09:55AM Mark Ford wrote:

Aaron,

Thanks for the reply and suggestions. Thaay are a great help and very much appreciated.

Mark

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/3ab10fd10183462e8525664a004661c8.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1