using System.Collections.Generic;
public static void Main(string[] args)
int[] cards = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
public static int[] Shuffle(int[] arr)
Random rand = new Random();
for(int i = arr.Length -1; i > 0; i--){
int randomIndex = rand.Next(0, i+1);
int temp = arr[randomIndex];
arr[randomIndex] = arr[i];
public static int[] Shuffle1(int[] arr)
HashSet<int> hashSet = new HashSet<int>();
Random rand = new Random();
int randomIndex = rand.Next(0, arr.Length -1);
if(hashSet.Contains(randomIndex) == false){
int temp= arr[randomIndex];
arr[randomIndex] = arr[i];
Console.WriteLine("Ran for :" + counter);