Reference · Dice and card dressing
tenkaThrownDiefunction
A random source for Korokoro that comes up with face on a die of six: how a die is made to tumble onto the face
the game has already thrown. Korokoro picks a face from the source it is given, and this one picks the one asked for.
Import it
import { tenkaThrownDie } from "@johnmorrisdotca/tenka/dressing";
Definition
function tenkaThrownDie(face: number): RandomSource
Parameters
| Name | Type | Description |
|---|---|---|
face | number | The die face to reproduce. |
Returns
RandomSource
A random source for Korokoro that comes up with face on a die of six: how a die is made to tumble onto the face the game has already thrown. Korokoro picks a face from the source it is given, and this one picks the one asked for.
Examples
import { tenkaThrownDie } from "@johnmorrisdotca/tenka/dressing";
console.log(tenkaThrownDie(4).next());3What it prints (run when this page was built)