Skip to the content

Hitotsu一つ

Match the colour or number, call with one card left, and play classic or party rules against computers or at a shared table.

Hitotsu is Japanese for one: the call with one card left. About the name

Contents

Reference · Game engine and table

seededRandomfunction

A seeded generator (mulberry32): the same seed gives the same numbers, on every machine.

Import it

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

Definition

function seededRandom(seed: number): Random

Parameters

NameTypeDescription
seednumber

The numeric seed that reproduces the same random sequence or deal.

Returns

Random

A seeded generator (mulberry32): the same seed gives the same numbers, on every machine.

Examples

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

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

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hitotsu 1.4.0.