0
How to make random in js? Random 1-50 no greater than 50
6 Respostas
0
\\seems to work fine
var x=Math.random()*50
console.log(x)
0
apologies, i did the comment backwards
//
0
//if you needed it to be rounded and not a decimal //try this.
var x=Math.random()*50
console.log(Math.round(x))
0
Thnx very much :) It help me a lot but it's not work ya
0
I know it works! but Learn HTMl isnt work but browser is work
0
Thnx Cocoa :)