UNPKG

@0xcap/loot-table

Version:

A simple loot table implementation in TypeScript.

3 lines (2 loc) 104 B
export const randomInRange = (min: number, max: number): number => Math.random() * (max - min) + min;