+ 5

Hello! " How can i make an array with 10 random numbers between 1-10 without repeating"?

23rd Jan 2018, 4:29 PM
‏‪maryam‬‏
‏‪maryam‬‏ - avatar
3 Respuestas
+ 7
I though you meant no loops this one has no repitition https://code.sololearn.com/c9J5462kZ2EH/?ref=app
24th Jan 2018, 7:03 AM
Louis
Louis - avatar
+ 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
24th Jan 2018, 10:50 AM
code learner
code learner - avatar