Home > Net >  How to generate a fixed random number
How to generate a fixed random number

Time:09-26

A set of Numbers, there are about more than 20, the day will not change

Want to achieve, the randomly selected 16 Numbers are the same, with the first run time randomly selected 16 Numbers shall prevail, the day does not change, how to implement?

Thank you very much!

For example: 06,10,12,19,20,23,24,29,30,31,39,42,43,44,53,55,57,62,67,73,77,79 {}

CodePudding user response:

New random (seed)
Seeds can be used to date
The same seed generated random number sequence is the same
  •  Tags:  
  • C#
  • Related