The math methods provided previously are a good start, and they may be all you need for your purposes. But there are a lot more available if needed.
Visit W3 JavaScript Math Reference
Here are a few more (but not all):
Random numbers generated by a computer are pseudo-random numbers.
Math.random() relies on a pseudo-random number generator (PRNG), which is a deterministic algorithm. This means that given the same initial "seed" value, the algorithm will always produce the same sequence of numbers. The numbers may appear random, but they are generated by a predictable process.
Do NOT use this feature for cryptographic purposes.
As you will see this returns a different DECIMAL number each time (but NOT truly random), which is probably not what you need. To get a pseudo-random INTEGER within a particular range, we need something extra.
Sprint(Math.floor(Math.random()*101))
We need to use the Math.floor method to get just the integer of Math.random, then multiply the result by the upper limit.
If you refresh this page, you will see both the above example and this one will also change.