<reponame>Aryan0199/Advanced-Face-Mask-Detection-System-With-Violater-Details<filename>node_modules/random/dist/esm/distributions/geometric.js<gh_stars>0import { numberValidator } from '../validation';
export default (random, p = 0.5) => {
    numberValidator(p).greaterThan(0).lessThan(1);
    const invLogP = 1.0 / Math.log(1.0 - p);
    return () => {
        return Math.floor(1 + Math.log(random.next()) * invLogP);
    };
};
//# sourceMappingURL=geometric.js.map