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