tag:blogger.com,1999:blog-32079676.post2872529625718141717..comments2024-02-13T21:22:02.522-08:00Comments on RRResearch: Not as random as it should beRosie Redfieldhttp://www.blogger.com/profile/06807912674127645263noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-32079676.post-90012445118112258342006-10-31T17:46:00.000-08:002006-10-31T17:46:00.000-08:00If you fix the seed yourself, yes you should alway...If you fix the seed yourself, yes you should always get the same result (once the seed is fixed, you will always get the same sequence of random numbers, hence you'll get reproducibility). Some langages/functions start the first seed based on the clock (milliseconds before midnight), but others don't. You may have to look at the documentation of your compiler.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32079676.post-70784173239885885772006-10-31T07:00:00.000-08:002006-10-31T07:00:00.000-08:00The seeds it's getting are very similar to each ot...The seeds it's getting are very similar to each other, so they're not pseudorandom. I only have a compiled version of this program, not the code, so I'll have to wait for a reply from the expert.<br /><br />I think the dependence of later seeds on the initial seed may be a troubleshooting 'feature', not a bug. Combined with the option of a user-specified seed, the results of what should be identical runs can be compared.Rosie Redfieldhttps://www.blogger.com/profile/06807912674127645263noreply@blogger.comtag:blogger.com,1999:blog-32079676.post-81636495703560259572006-10-31T03:31:00.000-08:002006-10-31T03:31:00.000-08:00I've never really got my head around pseudo-random...I've never really got my head around pseudo-random number generation. The rand() function in Perl chooses a seed based on time the program started - I guess something similar has happened here, so spacing in the queue should help.<br /><br />Here's some <a href="http://www.unix.org.ua/orelly/perl/cookbook/ch02_08.htm">discussion of rand()</a> and the <a href="http://www.unix.org.ua/orelly/perl/cookbook/ch02_09.htm">alternative, srand()</a>, with respect to Perl.Anonymousnoreply@blogger.com