Skip to content

Function: rollMany() ​

ts
function rollMany(
   spec, 
   times?, 
   source?, 
   when?
): RollSet;

Defined in: src/dice.ts:993

Throw the same dice several times in one go, as ability scores are rolled: 4d6dl1 six times. The rolls are drawn one after another from the one source, so a seed replays the whole set, and each is an ordinary roll that says which set it belongs to. times is the spec's own unless given, from 1 to MAX_TIMES.

Parameters ​

spec ​

Partial<RollSpec>

times? ​

number

source? ​

RandomSource = ...

when? ​

number | RollOptions

Returns ​

RollSet

MIT © John Morris