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