+ 1

Random Number method

What methods that will take the random number beetween int a and b

25th Nov 2017, 8:39 AM
Rainer Affan Regan
Rainer Affan Regan - avatar
1 Respuesta
+ 1
Random random = new Random(); int randomNumber = random.Next(a,b); if b are 10, that means 10 are not included, you should use b+1 if you really want 10 are included into random.
25th Nov 2017, 9:11 AM
Momo Belia
Momo Belia - avatar