Skip to the content

Houseki宝石

Run five native gem and stone engines, play measured challenges and lessons, and save deterministic games.

Houseki (宝石) is Japanese for a gem or precious stone. About the name

Contents

Reference · Falling Triplets

nextUint32function

Advances the reference xorshift32 source.

Import it

import { nextUint32 } from "@johnmorrisdotca/houseki/falling-triplets";

Definition

function nextUint32(state: number): readonly [number, number]

Parameters

NameTypeDescription
statenumber

The immutable native state to read or transition; the input is retained.

Returns

readonly [number, number]

Advances the reference xorshift32 source.

Examples

import { nextUint32, seedState } from "@johnmorrisdotca/houseki/falling-triplets";

console.log(nextUint32(seedState("docs")));
[ 2153459370, 2153459370 ]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/houseki 0.4.2.