+ 4
How to random in JS
I want to create random numbers, I not know how to random, code: var a = ??? document.write(a);
3 Answers
+ 7
var a = Math.floor(Math.random() * 10);
Prints random 'whole' numbers between 10
+ 4
Thanks!
I want to create random numbers, I not know how to random, code: var a = ??? document.write(a);