Skip to main content
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.3/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 GachaMachine3 instead of GachaMachine.

Parameters

count: number