1 2 3 4 5 6/** * Get a random number between min and max */ export const randomInt = (min: number, max: number) => Math.floor(Math.random() * (Math.floor(max) - Math.ceil(min) + 1) + Math.ceil(min));
1 2 3 4 5 6
/** * Get a random number between min and max */ export const randomInt = (min: number, max: number) => Math.floor(Math.random() * (Math.floor(max) - Math.ceil(min) + 1) + Math.ceil(min));