Random number Generator in C#
Posted
by Sunil
on Stack Overflow
See other posts from Stack Overflow
or by Sunil
Published on 2010-04-15T07:33:30Z
Indexed on
2010/04/15
7:43 UTC
Read the original article
Hit count: 504
c#
Why do i need to create an instance of Random class, if i want to create a random number between 1 and 100 ....like
Random rand = new Random();
rand.Next(1,100);
Is there any static function of Random class to do the same? like...
Random.Next(1,100);
I don't want to create an instance unnecessarily
© Stack Overflow or respective owner