I just tried this example:
class TestRandom
{
static void Main(string[] args)
{
Console.WriteLine("Testing Random class");
Random rand = new Random();
for (int i = 0; i < 100; i++)
Console.WriteLine("Value {0}",rand.Next(15,451));
Console.WriteLine("\nPress ENTER to close");
Console.ReadLine();
}
}
Random.Next expects a min and max value as parameters. Min is inclusive
and max is exclusive (that's why I passed 15 and 451).
Hope this helps.
BTW. I found this (didn't know it before hand) by searching for random
is the object browser. I find it exteremly useful when trying to find
things that I don't know about.
John.