Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Apl > Re: picking a n...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 12 Topic 941 of 1022
Post > Topic >>

Re: picking a new random seed

by Sam Sirlin <swsirlin@[EMAIL PROTECTED] > Jan 26, 2008 at 05:47 PM

Charles Brenner wrote:
> When doing Monte Carlo simulations, it may be uninteresting to redo
> the same ones every time the workspace is loaded. As a crude method to
> avoid reusing the same random number sequence, I wrote a loop to run
> for one second generating a random number each time. To my surprise
> the number of iterations in a second shows very little variation --
> 85% of 1-second trials ran the same number of iterations hence ended
> with the same random seed. Also, that number was quite small. (APL
> +DOS: It was 814 but I did also advance a counter in the loop.)
> 
> I guess it would be better just to read the system clock. At 100 tics
> per second, there are as many tics in a year as the number of valid
> values for []RL.

If you really care, you probably want to check out whatever generator 
you use with various tests. There are numerous references on the web, 
for instance

http://www.math.utah.edu/~pa/Random/Random.html
http://csrc.nist.gov/groups/ST/toolkit/rng/index.html

Sam




 12 Posts in Topic:
picking a new random seed
Charles Brenner <cbren  2008-01-26 17:01:18 
Re: picking a new random seed
Sam Sirlin <swsirlin@[  2008-01-26 17:47:00 
Re: picking a new random seed
"Curtis A. Jones&quo  2008-01-27 13:33:38 
Re: picking a new random seed
Phil Last <phil.last@[  2008-01-27 15:01:01 
Re: picking a new random seed
"Curtis A. Jones&quo  2008-01-28 09:09:42 
Re: picking a new random seed
Phil Last <phil.last@[  2008-01-28 10:08:42 
Re: picking a new random seed
rbe <bernecky@[EMAIL P  2008-01-29 06:15:33 
Re: picking a new random seed
Charles Brenner <cbren  2008-01-29 21:37:30 
Re: picking a new random seed
"James J. Weinkam&qu  2008-01-30 21:57:05 
Re: picking a new random seed
"jk" <*axy*@  2008-01-30 23:06:17 
Re: picking a new random seed
Jane Sullivan <jane@[E  2008-01-31 07:13:48 
Re: picking a new random seed
Charles Brenner <cbren  2008-02-03 13:59:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 4:26:01 CDT 2008.