UNPKG

@randsum/dice

Version:

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

9 lines (8 loc) 341 B
/** * Generates an array of numerical faces for a die with the given number of sides * Uses memoization to cache results for better performance * * @param sides - The number of sides on the die * @returns An array of numbers representing the faces of the die */ export declare function generateNumericalFaces(sides: number): number[];