It is not rediculous to expect a pseudo-random number generator to behave differently! I believe that is, indeed what rand() is supposed to be. You go in with a consistent seed across all platforms, it should return consistent results across same.

As I said before, the original poster (Louis?) should contact the people who ported the windoze version of Perl.

At 11:14 -0400 09/11/2003, Ronald J Kimball wrote:

This is not a bug in Microsoft's implementation of rand(), it is a bug in your expectations. It's ridiculous to expect rand() to function identically across all platforms. That's simply not the point of rand(). If you need consistent "random" numbers, you should implement your own generator.

Ronald



Reply via email to