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

x/fortuna/mod.ts>GachaMachine#get

A TypeScript module for random events and gacha.
Latest
method GachaMachine.prototype.get
import { GachaMachine } from "https://deno.land/x/fortuna@v4.1.4/mod.ts";

Roll items from the gacha machine.

const machine = new GachaMachine(items);
machine.get(11)

If you are looking for the distinct rolls, try importing LimitedGachaMachine instead of GachaMachine.

Parameters

count: number