How can I do an array like this?
I will create random 30 integer (interegers must be even numbers). And then I will add those numbers to an array.. And I will sort this array from small to big but not only small to big! 

Example for array have 10 element:

//myarray must have random double numbers

int myarray[10]={112,4,16,368,76,198,236,98,540,752};

and result of sorting must like this:

4,16,76,98,**752**,540,368,236,198,112

look carefully max number on the middle of the result and the other numbers are ascending towards the edges... So how can ı do this result without any method(Array.Sort() etc...) only for,while etc..

And programming language must be C#. Thank you for your help..
How can I do an array like this?
===

I will create random 30 integer (interegers must be even numbers). And then I will add those numbers to an array.. And I will sort this array from small to big but not only small to big! 

Example for array have 10 element:

//myarray must have random double numbers

int myarray[10]={112,4,16,368,76,198,236,98,540,752};

and result of sorting must like this:

4,16,76,98,**752**,540,368,236,198,112

look carefully max number on the middle of the result and the other numbers are ascending towards the edges... So how can ı do this result without any method(Array.Sort() etc...) only for,while etc..

And programming language must be C#. Thank you for your help..