PeerTube/shared/core-utils/miscs/miscs.ts

8 lines
131 B
TypeScript

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