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).
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Scott Knake30 pointsPosted Jul 18, 2009, 5:41 AM EDT
Paul Sejake2 pointsPosted Jul 19, 2009, 4:28 AM EDT
Please do reply as soon, its of importance to me...
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Jul 20, 2009, 10:38 AM EDT
{
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);
}