Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

random number

Status
Not open for further replies.

mgl70

Programmer
Sep 10, 2003
105
US
hi,
how do we generate random numbers ( one to million) without using random class or math.random.

thanks,
 
check through these threads. plentyof examples and info
thread269-684805
thread269-685391
thread269-251509

___________________________________________________________________
onpnt2.gif

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
 
thank you. But we should not use random class and math.random.and those numbers should be written to a file also.
 
If you can use a database you can set a table to create the random number per 1 to a million. hit it and then extract the last insert. If need be sense you would be utilizing a db then you could write the results to a text file.

is tehre a reason for not being able to use the functions and methods that are set to perfomr this task? The work arounds are lacking efficiency and performance for what should be a simple predefined class

___________________________________________________________________
onpnt2.gif

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top