Skip to the content

Meikyuu迷宮

Generate seeded mazes and arrow puzzles, follow numbered levels, and play on flat grids or three-dimensional surfaces.

Meikyuu is the Japanese word 迷宮 for labyrinth. About the name

Contents

Reference · Mazes, arrows and mixed boards

seededRandomfunction

A stream of numbers in [0, 1) fixed by a seed.

Import it

import { seededRandom } from "@johnmorrisdotca/meikyuu";

Definition

function seededRandom(seed: number): Random

Parameters

NameTypeDescription
seednumber

The reproducible native numeric seed.

Returns

Random

A stream of numbers in [0, 1) fixed by a seed.

Examples

import { seededRandom } from "@johnmorrisdotca/meikyuu";

console.log(seededRandom(42)());
0.6011037519201636

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/meikyuu 3.2.0.