mirror of
https://github.com/sergeyyarkov/educt-server.git
synced 2026-10-11 18:29:15 +03:00
5 lines
211 B
TypeScript
5 lines
211 B
TypeScript
// eslint-disable-next-line import/prefer-default-export
|
|
export const generateRandomInt = ({ min, max }: { min: number; max: number }): number => {
|
|
return Math.floor(Math.random() * (max - min + 1) + min);
|
|
};
|