private int GenerateNewRandomNumber(int min, int max)
{
Random Myrandom = new Random();
return Myrandom.Next(min, max);
}
//To call function
int Myrandom= GenerateNewRandomNumber(5, 20);
Sunday, April 11, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment