By Hunter Becton on January 21, 2023
const randomNumber = Math.random() * (max - min) + min
Replace min with your minimum value and max with your maximum value to randomly generate a number between those two values.
min
max