UNPKG

randomcryp

Version:

A cryptographically secure, feature rich, zero dependency and browser friendly random number generator library.

6 lines (5 loc) 232 B
/** * Generates true with the probability of the percentage value given. * @example percentage(20) // should return true 20% of the time and false 80% of the time. **/ export declare const percentage: (input: number) => boolean;