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