I have a series of numbers saved in an array, ex 4,6,7,8 and I want them to change into a random series, ex 6,8,4,7 or 8,6,4,7 etc. How can I do that?

I prefer in C#

Thanks in advanced

int ShuffleArray(int array)

{

System.Random r = new System.Random();

for (int i = array.Length; i > 0; i–)

{

int j = r.Next(i);

int k = array[j];

array[j] = array[i - 1];

array[i - 1] = k;

}

return array;

}