Skip to main content
Module

x/fortuna/mod.ts

A TypeScript module for random events and gacha.
Go to Latest
import * as fortuna from "https://deno.land/x/fortuna@v4.1.0/mod.ts";

Classes

Gacha system.

Gacha system for rolling n distinct items from the weighted collection.

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.

Toss n unbiased coins (50% chance of head / tail).