How do I generate a random int number?

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

How do I generate a random integer in C#?

30条回答
  •  余生分开走
    2020-11-21 12:04

    The easiest way is probably just Random.range(1, 3) This would generate a number between 1 and 2.

提交回复
热议问题