Reference · Rules, games and records
seededRandomfunction
The mulberry32 stream: the same seed makes the same numbers everywhere.
Import it
import { seededRandom } from "@johnmorrisdotca/sugoroku";
Definition
function seededRandom(seed: number | string): Random
Parameters
| Name | Type | Description |
|---|---|---|
seed | string | number | A reproducible numeric or text seed. |
Returns
Random
The mulberry32 stream: the same seed makes the same numbers everywhere.
Examples
import { seededRandom } from "@johnmorrisdotca/sugoroku";
console.log(seededRandom(42)());0.6011037519201636What it prints (run when this page was built)