Monday, December 24, 2018

Javascript random number between two digits

I want to generate a valid number between 200 and 450. Here is my snippet of code.



Math.floor(Math.random() * 450) + 200


Sometimetimes its 568 or any number not in the range i would want it to be. Can anybode give me a hint how to solve it please?

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...