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

Chance to roll a number out of 100

Parameters

chance: number

Percentage chance roll should success

optional
scale: number

scale of chance to allow support of numbers > 1-100

Returns

boolean

true if success