public static void Main()
Random genarrsize = new Random();
int gensize = genarrsize.Next(5,26);
int [] _anarray = new int [gensize];
int _size = _anarray.Length;
for(int i =0; i<_anarray.Length; i++)
int ran = SomeFuncs.GenNums();
foreach(int i in _anarray)
Console.WriteLine(string.Format("index{0}:{1}",index,i));
Console.WriteLine("\n ======================== \n REVERSED \n");
int [] _newarrayreversed = new int[gensize];
_newarrayreversed= SomeFuncs.ReverseArrays(_anarray);
foreach(int i in _newarrayreversed)
Console.WriteLine(string.Format("index{0}:{1}",gensize,i));
public static int GenNums()
Random rnd = new Random();
int num = rnd.Next(0,999);
public static int[] ReverseArrays(int []arr)
int [] narr = new int[size];
for(int i =0; i<arr.Length; i++)