nextUint32function
Advances the reference xorshift32 source.
Import it
import { nextUint32 } from "@johnmorrisdotca/houseki/falling-triplets";
Definition
function nextUint32(state: number): readonly [number, number]
Parameters
| Name | Type | Description |
|---|---|---|
state | number | 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)