× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Emily Smith wrote:
We have a program that uses 'rand' to generate random numbers. I call this program requesting an eight byte number and receive a number 81239122. I sign off, and a coworker signs onto my workstation he also calls the program requesting an eight byte number, and also receives 81239122. He signs off, I sign back on, run the same program and receive a completely different number 73449833. I sign off. He signs back on again calls the program and receives 81239712.

You've already got some good suggestions on which to follow up, such as getting a grip on seeding, as well as making sure that any munging you do of the prng's results doesn't skew the distribution of the results.

Since I can't add any more info, I hope I can add some levity instead:
http://web.archive.org/web/20011027002011/http://dilbert.com/comics/dilbert/archive/images/dilbert2001182781025.gif
http://xkcd.com/c221.html

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.