n0mbers/src/utils.ts

10 lines
190 B
TypeScript
Raw Normal View History

2022-02-07 22:14:31 +01:00
/**
*
* @param min inclusive
* @param max exclusive
* @returns
*/
export function randRange(min: number, max: number): number {
return Math.floor(Math.random() * (max - min) + min)
}