C#C
C#9mo ago
teq

array exercise

i want to generate numbers that are unique and dont duplicate int[] x = new int[10];
for (int i = 0; i < x.Length; i++)
{
x[i] = Random.Shared.Next(15);
Console.WriteLine($"{x[i]}");

}

any way to do this without built in methods?
Was this page helpful?