+ 5
Hello! " How can i make an array with 10 random numbers between 1-10 without repeating"?
3 Answers
+ 7
I though you meant no loops
this one has no repitition
https://code.sololearn.com/c9J5462kZ2EH/?ref=app
+ 2
10 random numbers from 1-10 without repeating? so one number only comes one time?
just make array of size 10 containing 1-10 numbers in ascending order ,then swap random elements random number of times