We are seeing differences in the output of Random.Next, Random.NextDouble
when run from the same seed but on different machines. I am wondering if
this is expected.

For example, if I run:

Random rng = new Random(123);
int i=0;
double x = 0.0;
for (int i=0; i < 10000; i++) {
    i += rng.Next() % 2;
    x += rng.NextDouble();
}

on two separate machines, should I expect to see the same results? The code
in question is single threaded, but I thought there may be other issues at
work that could cause the two runs to diverge.

Thanks for any assistance,

Matt
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.dot.net/mailman/listinfo/mono-list

Reply via email to