7 lines
131 B
TypeScript
7 lines
131 B
TypeScript
function randomInt (low: number, high: number) {
|
|
return Math.floor(Math.random() * (high - low) + low)
|
|
}
|
|
|
|
export {
|
|
randomInt
|
|
}
|