4 lines
99 B
TypeScript
4 lines
99 B
TypeScript
|
|
export function getRandomInt(max: number) {
|
||
|
|
return Math.floor(Math.random() * Math.floor(max));
|
||
|
|
}
|