]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/core-utils/common/random.ts
Fix server lint
[github/Chocobozzz/PeerTube.git] / shared / core-utils / common / random.ts
CommitLineData
f304a158
C
1// high excluded
2function randomInt (low: number, high: number) {
3 return Math.floor(Math.random() * (high - low) + low)
4}
5
6export {
7 randomInt
8}