0

How do I choose a random number other than 0 and 1 in JS?

I'm wondering if there is a way to choose a different number than something between 0 and 1.

12th Apr 2019, 12:44 PM
Jacob
Jacob - avatar
1 Answer
+ 5
Yes just multiply it by what ever number you want. Math.floor(Math.random()*100);
12th Apr 2019, 1:21 PM
D_Stark
D_Stark - avatar