Skip to the content

Jarajaraジャラジャラ

Draw mahjong tiles, arrange racks and stacked boards, and play seeded Awase alone or at a shared table.

Jarajara is the Japanese sound of mahjong tiles rattling together. About the name

Contents

Reference · Tiles, layouts and deals

Randomtype

A number in [0, 1), like Math.random, from a stream a seed fixes.

Import it

import type { Random } from "@johnmorrisdotca/jarajara";

Definition

type Random = () => number;

Examples

import type { Random } from "@johnmorrisdotca/jarajara";
import { seededRandom } from "@johnmorrisdotca/jarajara";

const value: Random = seededRandom(42);
console.log(value);
[Function (anonymous)]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jarajara 1.7.0.