import * as fortuna from "https://deno.land/x/fortuna@v4.1.2/mod.ts";
Classes
Gacha system. | |
Gacha system for rolling n distinct items from the weighted collection. |
Functions
f roll | Roll one item from a pool using linear search. Simple and great for one-time use pools.
Use |
Roll an unbiased die. A biased die can be implemented using GachaMachine. | |
Toss n unbiased coins (50% chance of head / tail). A biased coin can be implemented using GachaMachine. Do not toss more than 62 coins at once. |