Hi every one out there!!
I have a big problem here- I want to generate random integers between 0 and 15, 0, 15 included.
but there is a condition, i donot want the numbers to repeat, it should be like:
(10,15,0,14,13,1,9,6,5,7,3,12,2,4,8,11)its an example!
can any one help me please?
I tried this but did not work, it repeats some integers
System.Random r = new Random();for (int i = 0; i < 15; i++){ System.Console.WriteLine(r.Next(0, 15));}