07
MAY
Get unique random numbers in C#
The source code this blog mentioned is here: https://github.com/Anduin2017/SuperRandom The traditional methods for obtaining n non-repeating random numbers are: The random number is generated by the linear congruence method, and each random number is generated and compared in the database. If it already exists, the number is discarded. Randomly generate a linear sequence, and then …