aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/core-utils/common/random.ts
blob: 705735d09f966170a4f88afed60b0f342c6e9d78 (plain) (tree)
1
2
3
4
5
6
7
8







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

export {
  randomInt
}