© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•11mo ago•
6 replies
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ exercise without datetime
C#CC# / help
3y ago
Pipeline(algorithm exercise)
C#CC# / help
4y ago
Inheritance exercise problem. SOLVED
C#CC# / help
15mo ago
❔ help with an exercise
C#CC# / help
3y ago