Skip to the content

Kazu数

Generate checked Sudoku and logic puzzles, read native rules and hints, and draw or embed playable boards.

Kazu is the Japanese word 数 for number. About the name

Contents

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

NameTypeDescription
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)));
1290860478

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kazu 2.1.0.