PIbd-23_Dyakonov_R_R_SUBD_P.../server/helpers/get-random-number.helper.ts
2024-04-03 22:31:50 +04:00

4 lines
122 B
TypeScript

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