How can I generate random numbers with no repeat in C#. I have one array and I want to fill every room with random numbers from 0 to 9. Each room shoud have diffrent numbers
With such a small list of numbers to choose from you can simply generate a list that contains all of them and then shuffle them.