Skip to content

Function: rollPreset() ​

ts
function rollPreset(name, options?): PresetRoll;

Defined in: src/games/presets.ts:171

Throw a game's dice and read them. source is the crypto generator unless a seeded one is given; before is the rolls so far in the same game. Throws a RangeError for a name that is no preset.

Parameters ​

name ​

string

options? ​

source? ​

RandomSource

at? ​

number

before? ​

readonly Roll[]

language? ​

"en" | "ja"

Returns ​

PresetRoll

MIT © John Morris