Skip to the content

Dominoドミノ

Deal seeded dominoes, play Mexican Train with native rules and computers, and replay a saved game.

Domino is the Japanese borrowed word ドミノ for dominoes. About the name

Contents

Reference · Tiles, Mexican Train and replay

seededRandomfunction

A stream of numbers in [0, 1) fixed by a seed.

Import it

import { seededRandom } from "@johnmorrisdotca/domino";

Definition

function seededRandom(seed: number): Random

Parameters

NameTypeDescription
seednumber

The seed for reproducible shuffles.

Returns

Random

A stream of numbers in [0, 1) fixed by a seed.

Examples

import { seededRandom } from "@johnmorrisdotca/domino";

console.log(seededRandom(42)());
0.6011037519201636

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/domino 1.1.4.