Hi.
Reading about the Math.random method I saw that by default it
generates between 0 and 1. To generate numbers between a greater range
I can use these syntaxes:
x = Math.random()/10
x = Math.random()*1 0
What is the difference between the two? I could not understand the
role of the operators here.
Thanks,
Robert Scheer
Reading about the Math.random method I saw that by default it
generates between 0 and 1. To generate numbers between a greater range
I can use these syntaxes:
x = Math.random()/10
x = Math.random()*1 0
What is the difference between the two? I could not understand the
role of the operators here.
Thanks,
Robert Scheer
Comment