Generate a random number between two values
Code snippet on creating a random number between a defined minimum and maximum value.
const randomNumber = Math.random() * (max - min) + min
How to use
Replace min
with your minimum value and max
with your maximum value to randomly generate a number between those two values.