data-structure-typed/test/utils/number.ts

4 lines
119 B
TypeScript

export function getRandomInt(min: number, max: number) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}