1
0
Fork 0
peertube/shared/core-utils/common/random.ts
2021-12-17 13:58:07 +01:00

8 lines
148 B
TypeScript

// high excluded
function randomInt (low: number, high: number) {
return Math.floor(Math.random() * (high - low) + low)
}
export {
randomInt
}