Combination of Random Numbers
I'd like you to programme me a code that will show a combination of Random Numbers from a series of digits, e.g.i'd like all random combinations from 1-50 with a length of 8 digits,e.g. 2 45 34 23 43 12 23 22, next row: 1 35 23 15 11 46 45 22, etc....(it should show all random numbers from 1-50).
Niradhip ChakrabortyPosted Jul 20, 2009, 2:38 PM
{
for(int i =0; i<8 ;i++)
{
int intreturnValue = RandomNumber(1, 50);
}
}
private int RandomNumber(int min, int max)
{
Random random = new Random();
return random.Next(min, max);
}
Paul SejakePosted Jul 19, 2009, 8:28 AM
Please do reply as soon, its of importance to me...
Scott KnakePosted Jul 18, 2009, 9:41 AM