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

4 lines
119 B
TypeScript
Raw Normal View History

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