Reference · Number-puzzle engines
freshKazuSeedfunction
A new seed, from Math.random or the stream given: anywhere in the range.
Import it
import { freshKazuSeed } from "@johnmorrisdotca/kazu";
Definition
function freshKazuSeed(random?: Random): number
Parameters
| Name | Type | Description |
|---|---|---|
random (optional) | Random | A random source returning values in [0,1). |
Returns
number
A new seed, from Math.random or the stream given: anywhere in the range.
Examples
import { freshKazuSeed, seededRandom } from "@johnmorrisdotca/kazu";
console.log(freshKazuSeed(seededRandom(42)));1290860478What it prints (run when this page was built)