+ 1

I am trying to make that but I couldn't make šŸ˜£Help me please

I am trying to make a random system. This system will create 10 random number. This randoms will be from 0 to 9; Every randoms will be different like -> 3,5,2,1,9,8,0,7,4,6

5th Jun 2017, 4:27 PM
Serhat Merak
Serhat Merak - avatar
8 Answers
+ 5
check this for starters, might give you a better grasp of random number distribution https://code.sololearn.com/WLgGhMLpC6n2/?ref=app
5th Jun 2017, 4:42 PM
Burey
Burey - avatar
+ 14
Math.random() * (max - min) + min; Replace 'max' with your max range and 'min' with your minimum range. I want to pointed out that my method is basilar, numbers are not truly random for some reasons, search on Google for more informations about the truly random numbers. :)
5th Jun 2017, 4:32 PM
Maz
Maz - avatar
+ 4
Another sample here.. Generate 20 unique random numbers from 1 to 20. https://code.sololearn.com/WWJz5u7gctiU/?ref=app
5th Jun 2017, 5:04 PM
CalviÕ²
CalviÕ² - avatar
5th Jun 2017, 5:07 PM
Burey
Burey - avatar
0
but sometimes it gives same number. I will run it 10 times and I want that They mustn't be same šŸ¤”
5th Jun 2017, 4:35 PM
Serhat Merak
Serhat Merak - avatar
0
I couldn't again šŸ˜­šŸ˜­šŸ˜­
5th Jun 2017, 4:53 PM
Serhat Merak
Serhat Merak - avatar
0
Thank you Calvin šŸ˜ŠšŸ˜ŠšŸ˜Š
5th Jun 2017, 5:05 PM
Serhat Merak
Serhat Merak - avatar
0
could you look my new question
9th Jun 2017, 3:12 PM
Serhat Merak
Serhat Merak - avatar