Quote:
The random method certainly uses less resources...
|
Random in not the method, but class.
Line below creates instance of Random class, and assigns the value to variable named random.
var random = new Random(Environment.TickCount);
Now, we can call method "Next" any number of times:
int randomNumber = random.Next(min, max);