UNPKG
@0xcap/loot-table
Version:
latest (1.0.1)
1.0.1
1.0.0
0.2.0
0.1.0
A simple loot table implementation in TypeScript.
0xCAP/loot-table
@0xcap/loot-table
/
src
/
utils.ts
3 lines
(2 loc)
•
104 B
text/typescript
View Raw
1
2
3
export const randomInRange = (
min
: number,
max
: number): number => Math.
random
() * (
max
-
min
) +
min
;