using System.Collections;
public class PrintTheRandomNumber{
public static void Main(string []args)
static int getNum(ArrayList v)
Random rand = new Random();
int index = (rand.Next() % n);
v[index] = (int)v[n - 1];
static void generateRandom(int n)
ArrayList v = new ArrayList(n);
for(int i = 0; i < n; i++)
Console.Write(getNum(v) + " ");