+ 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
8 Answers
+ 5
check this for starters, might give you a better grasp of random number distribution
https://code.sololearn.com/WLgGhMLpC6n2/?ref=app
+ 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. :)
+ 4
Another sample here..
Generate 20 unique random numbers from 1 to 20.
https://code.sololearn.com/WWJz5u7gctiU/?ref=app
+ 4
another version
https://code.sololearn.com/Wlcr886HgJpj/?ref=app
0
but sometimes it gives same number. I will run it 10 times and I want that They mustn't be same š¤
0
I couldn't again ššš
0
Thank you Calvin ššš
0
could you look my new question