data-structure-typed/tests/utils/number.ts
2023-09-19 17:00:25 +08:00

4 lines
119 B
TypeScript

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