Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7310 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Need to be able to extract from a selected set of records from large file random records and create another file from the selected records.

Will use this function from time to time with different total records expected i.e. need 4000 random records from the universe and another time would need 8200 records etc.

TIA

  • 2 weeks later...
Posted

GoToRecord script step as defined by a calculation. Make calculation Random * get ( foundcount ) will send you randomly to a record in your current found set. May need a round in there to get is working, I've not tested.

Posted

If you want to create sets of random records and avoid duplicates, you'll need to do a bit more. A simple way to do what you describe would be to create a script that first shows all records, then goes into a loop that runs X number of times, each iteration doing a GoToRecord randomly as Dkemme described above, followed by an Omit Record. Then after the loop exits, do a Show Omitted, and you have a found set of X random records. Then export/print/whatever the resulting found set.

Apologies if this is obvious to you, your profile doesn't show a skill level, and it sounded like you were looking for a full algorithm.

This topic is 7310 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.