Skip to main content
Module

x/fortuna/src/roll.ts

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

Functions

Roll one item from a pool using linear search. Simple and great for one-time use pools. Use GachaMachine if you will be picking multiple items from the same pool.