Skip to main content
Module

x/fortuna/mod.ts>rollDie

A Gacha-like system to roll random items with weights in TypeScript.
Go to Latest
function rollDie
import { rollDie } from "https://deno.land/x/fortuna@v4.0.0/mod.ts";

Parameters

exp: string
optional
separate: boolean

Returns

number | number[]

Parameters

options: RollOptions

Returns

number | number[]

Returns

number