0

Challenge: make a RNG

Make a random number generator ranging from 0 to 65536.

28th Aug 2017, 9:35 PM
Cristiano José
Cristiano José - avatar
3 Answers
+ 3
using python import random print(random.randrange(65537))
29th Aug 2017, 12:38 AM
hamletmun
hamletmun - avatar
+ 1
reusing code, I use it with Math.floor(Math.random()*n in somewhere here https://code.sololearn.com/WVj1t1nAI3En/?ref=app
29th Aug 2017, 12:55 AM
ysraelcon
ysraelcon - avatar
0
document.write(Math.round(Math.random() * 65536));
28th Aug 2017, 9:49 PM
Î‘Î·Ï„ÎżÎčπe
Î‘Î·Ï„ÎżÎčπe - avatar