Ahmed Soliman

Ahmed Soliman

  • NA
  • 6
  • 13.6k

Two Dimentional Array Sorting (c#)...

Feb 11 2008 10:29 AM

this is my code:

public void RandomNumberGenerator(int lower, int upper)

{

Random rnd = new Random();

int[,] arrdegree = new int[21, 6];

for (int i = 1; i < 21; i++)

{

for (int j = 1; j < 6; j++)

{

arrdegree[i, j] = rnd.Next(10, 99);

Console.WriteLine("Student" + "" + i + " , Subject" + j + "= " + arrdegree[i, j]);

}

}

}

i need to sort the values of the random generator in the myarray.................please help


Answers (3)