Roll Dice Function
From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-05-02.)
Roll Dice Function has 27 facts recorded in Dontopedia across 3 references, with 2 live disagreements.
Mostly:takes parameter(2), generates random roll using(2), pushes to(2)
Maturity scale
raw canonical shape-checked rule-derived certifiedInbound mentions (2)
Other subjects in dontopedia point AT this entity as a value. These are inverse relationships — e.g. "X motherOf this subject" — and answer questions the forward facts can't. Grouped by predicate.
callsCalls(1)
- Code Snippet
ex:code-snippet
definesFunctionDefines Function(1)
- Javascript Dice Roller Snippet
ex:javascript-dice-roller-snippet
Other facts (27)
The long tail: predicates that appear too rarely to warrant their own section. Filter or scroll to find a specific one. Each row links to its source.
| Predicate | Value | Ref |
|---|---|---|
| Takes Parameter | numSides | [1] |
| Takes Parameter | numDice | [1] |
| Generates Random Roll Using | Math.floor(Math.random() * numSides) + 1 | [1] |
| Generates Random Roll Using | Math Random | [2] |
| Pushes to | Rolls Array | [1] |
| Pushes to | Rolls Array | [2] |
| Returns | Rolls Array | [1] |
| Returns | Rolls Array | [2] |
| Initializes | Rolls Array | [1] |
| Loops to | Num Dice | [1] |
| Embodies Randomness | Math Random | [1] |
| Executes Loop From | 0 | [1] |
| Defined As | function rollDice(numDice, numSides) | [1] |
| Adds One to Each Roll | null | [2] |
| Assumes Uniform Distribution | null | [2] |
| Defined in | Javascript Snippet for 2d6 | [2] |
| Floors Random Value | Math Floor | [2] |
| Initializes Empty Array | Rolls Array | [2] |
| Loops Times | Num Dice | [2] |
| Takes Parameters | numDice,numSides | [2] |
| Pushes to Array | Rolls Array | [3] |
| Executes for Loop | 0 | [3] |
| Computes Random Roll | Math.floor(Math.random() * numSides) + 1 | [3] |
| Returns Array | Rolls Array | [3] |
| Is Reliable | true | [3] |
| Initializes Array | Rolls Array | [3] |
| Depends on Math Random | true | [3] |
Timeline
Timeline axis is valid_time — when each source says the fact was true in the world, not when Dontopedia learned about it. Retracted rows are kept for provenance; coloured stripes indicate the context kind.
References (3)
See also
Keep researching
Missing something or suspicious of what's here? Kick off a research session — a Claude agent will investigate, cite its sources, and file new facts into a dedicated context you can review before accepting into the shared view.