Skip to main content
The Deno 2 Release Candidate is here
Learn more
method RandomUtil.prototype.getChance100
import { RandomUtil } from "https://deno.land/x/sptaki@1.2.0/utils/mod.ts";

Check if number passes a check out of 100

Parameters

chancePercent: number

value check needs to be above

Returns

boolean

true if value passes check