Skip to the content

Tane種

Reproduce numbers from a seed, shuffle or pick items, share a daily puzzle and resume a saved stream.

Tane means seed in Japanese. About the name

Contents

Reference · Streams, draws and seeds

DrawSeedOptionstype

Where a drawn seed may land.

Import it

import type { DrawSeedOptions } from "@johnmorrisdotca/tane";

Definition

type DrawSeedOptions = {
    readonly most?: number;
    readonly reserved?: readonly SeedBlock[];
};

Members

NameTypeDescription
most (optional)number | undefined

The largest seed to draw. SEED_MOST unless said.

reserved (optional)readonly SeedBlock[] | undefined

Blocks a drawn seed never lands in. They must not overlap.

Examples

import type { DrawSeedOptions } from "@johnmorrisdotca/tane";

const value: DrawSeedOptions = { most: 100, reserved: [{ from: 10, size: 5 }] };
console.log(value.most);
100

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tane 1.3.0.