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

3 lines
120 B
TypeScript
Raw Normal View History

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