C# randomly generated repetitions?

Random functions in general programming languages are all pseudo-random, which is no more reliable than random drawing in our reality.

For example, the random number first has a range, such as 1- 100, and then it is randomly selected.

In C#, values are randomly selected according to time.

Therefore, it is normal to write a random function circularly, because the time is close (even the same, because the code execution efficiency is high) to get repeated numbers.

This is a common problem in programming languages. After all, computers are not smart. Change the code yourself to solve this problem.

What I said upstairs should not solve your problem. You can try if Sleep (), and then debug it in the code, and you will know the conclusion.