+ 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 Antworten
+ 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