Generate a random int in a given range
suggest changeNext(minValue, maxValue) returns an int from minValue inclusive to maxValue exclusive. The call below returns 10 through 19.
Random rnd = new Random();
var from10Through19 = rnd.Next(10, 20);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents