Generate a random int in a given range
suggest changeGenerate a random number between minValue
and maxValue - 1
.
Random rnd = new Random();
var randomBetween10And20 = rnd.Next(10, 20);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents