I'm stuck in a random generator right now. The requirements specification shows an example similar to this:
Random rand = new Random(3412);
The rand result is not directly reported, but used for other characteristics.
I wrote the same code as above to generate a random number with a seed of 3412. however, the result of the rest of the work is completely different from the sample.
The result of generating 518435373, I used the same code that I tried to use in the C # online compiler, but getting a different generation result, which is 11688046, the result of the rest of the results was also different from the sample.
So I'm just wondering what should be different on different machines?
By the way, can anyone provide the result from your machine, just look if this looks like me.
Ivan Li
source share