Chocobozzz/PeerTube

View on GitHub
packages/core-utils/src/common/random.ts

Summary

Maintainability
A
0 mins
Test Coverage
// high excluded
export function randomInt (low: number, high: number) {
  return Math.floor(Math.random() * (high - low) + low)
}