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

8 lines
131 B
TypeScript
Raw Normal View History

2019-04-24 15:10:37 +02:00
function randomInt (low: number, high: number) {
return Math.floor(Math.random() * (high - low) + low)
}
export {
randomInt
}