[Mono-osx] bug in Random

Duane Wandless duane at wandless.net
Mon Jan 19 09:31:04 EST 2009


Here is the code:
            Random rnd = new Random(1);
            Console.WriteLine("rand:" + rnd.Next(0, 11000));

Run it on Windows I get:
rand: 2735

Run it on OSX I get:
rand: 4035

Maybe I incorrectly assume that the pseudo-random number should be the same
on both platforms... but I believe that it should be a predictable sequence
given the same seed.

Thanks,
Duane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20090119/6bfed801/attachment.html 


More information about the Mono-osx mailing list