How to generate unique random number
using System;
namespace G06_20201027
{
class Program
{
static void Main()
{
Random r = new Random();
int[] x = new int[10];
for (int i = 0; i < x.Length; i++)
{
x[i] = r.Next(15);
}
for (int i = 0; i < x.Length; i++)
{
Console.WriteLine(x[i]);
}
Console.ReadKey();
}
}
}

Sachin SinghRank #66 · 26.2K reputationPosted Nov 1, 2020, 10:00 PM EST
Xaska Dadu6 reputationPosted Nov 1, 2020, 10:18 PM EST
Sachin SinghRank #66 · 26.2K reputationPosted Nov 1, 2020, 10:54 PM EST
Rajanikant HawaldarRank #107 · 20.6K reputationPosted Nov 2, 2020, 12:31 AM EST