Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fortuna/src/machine.ts>GachaChoice

A TypeScript module for random events and gacha.
Latest
type alias GachaChoice
import { type GachaChoice } from "https://deno.land/x/fortuna@v4.1.4/src/machine.ts";

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

definition: { result: T; chance: number; }