@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
8 lines • 300 B
TypeScript
/**
* Performs a probabilistic rounding where a fraction is rounded up or down with probability equal to the fraction
* @param {number} number
* @param {function} random
* @returns {int}
*/
export function roundFair(number: number, random: Function): int;
//# sourceMappingURL=roundFair.d.ts.map