Computer Science, asked by sakshichaudhari2481, 11 months ago

How to generate random number in javascript within range?

Answers

Answered by anmoldeep268gmailcom
0
The Math.random() function returns a floating-point, pseudo-random number in the range 0–1 (inclusive of 0, but not 1) with approximately uniform distribution over that range — which you can then scale to your desired range. The implementation selects the initial seed to the random number generation algorithm; it cannot be chosen or reset by the user.

I HOPE IT WILL HELP YOU
Similar questions