Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Random
Message
From
28/04/1998 15:04:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Random
Miscellaneous
Thread ID:
00095495
Message ID:
00095497
Views:
18
>I have a dbf table of members and related info.
>How can I get a random sampling of 411 out of the existing 6812?
>I been trying to apply rand() but with no success..
>Thank you for your understanding.

I had to apply a similar process for the Quiz section. What I did was to select all the records in a cursor. Then, I use the _TALLY to RAND(). I can now use the RECNO() of the cursor to locate the records. I can't apply the RAND() on the original table as some records may be deleted.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform