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

freshSeedfunction

A fresh seed for a new deal.

Import it

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

Definition

function freshSeed(random?: Random): number

Parameters

NameTypeDescription
random (optional)Random

A source of numbers in [0, 1).

Returns

number

A fresh seed for a new deal.

Examples

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

console.log(freshSeed(seededRandom(42)));
1290860477

What it prints (run when this page was built)

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