A simple function to get a random number between a minimum and maximum value.
npm install get-random-number
import { getRandomNumber } from 'get-random-number';
const random = getRandomNumber(1, 100); console.log(random); // Outputs a random number between 1 and 100