C # (random number) memo

In C #, if two random numbers are declared at the same timing, they are only the same random number. In short, different numbers will be given for processes that differ by one second ...

Why are you doing that? There is a mechanism

Please note that this is different from java.

Will be edited later

Recommended Posts

C # (random number) memo
java (random number)
Random number creation (Math.random ();)
[Java] Random number generation method (Random)
[Personal memo] Number guessing game
[Personal memo] How to interact with a random number generator in Java
[Ruby] 4-digit random number generation with sprintf