What i try to to, is generate an array of random int values, where the random values are taken between a min and a max.
So far i came up with this code:
int Min = 0;
int Max = 20;
int[] test2 = new int[5];
Random randNum = new Random();
foreach (int value in test2)
{
randNum.Next(Min, Max);
}
But its not fully working yet. I think i might be missing just 1 line or something. Can anyone help me out pushing me in the right direction ?
See Question&Answers more detail:os