How do I generate a random int number?

前端 未结 30 3044
长发绾君心
长发绾君心 2020-11-21 11:02

How do I generate a random integer in C#?

30条回答
  •  不要未来只要你来
    2020-11-21 12:03

    Numbers calculated by a computer through a deterministic process, cannot, by definition, be random.

    If you want a genuine random numbers, the randomness comes from atmospheric noise or radioactive decay.

    You can try for example RANDOM.ORG (it reduces performance)

提交回复
热议问题