Jump to content

Generate random records between a range


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

Recommended Posts

I wish to create 10,000 records with a random number between 735234 and 736329.  Actually, I want to generate these records as dates between 1/1/2014 and 12/31/2016.  I used numbers thinking it would be easier to script.  Numbers (or dates) can be repeated, the only criteria is that the record set be random.   Any ideas how to proceed would be appreciated.  

Purpose of this request:  To generate sample data for charts.

Edited by LaRetta
Link to comment
Share on other sites

Not sure where you're having difficulty with this. Simply set the date field to =

Int ( Random * 1096 ) + 735234

Note: the number 1096 is obtained by = 736329 - 735234 + 1.

 

 

 

 

Edited by comment
  • Like 1
Link to comment
Share on other sites

Ah!  That is perfect, no surprise there.  And it is easy to see once you show us the logic of it.  Thank you so much!

Link to comment
Share on other sites

This topic is 2246 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
 Share

×
×
  • Create New...

Important Information

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