Skip to main content
Module

x/fortuna/src/v4.ts

Gacha system (random weighted selection) in TypeScript.
Go to Latest
import * as fortuna from "https://deno.land/x/fortuna@v4.0.0-alpha.1/src/v4.ts";

Classes

Gacha system.

Interfaces

Data fed to the constructor. The result property holds the result that will be returned after rolling. chance is the weight of the result.