UNPKG

@randsum/roller

Version:

A flexible, type-safe dice roller for tabletop RPGs, game development, and probability simulations

4 lines (3 loc) 87 B
export function coreRandom(max: number): number { return (Math.random() * max) | 0 }