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

SeedBlocktype

A range of seeds kept aside: from up to, not including, from + size.

Import it

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

Definition

type SeedBlock = {
    readonly from: number;
    readonly size: number;
};

Members

NameTypeDescription
fromnumber
sizenumber

Examples

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

const value: SeedBlock = { from: 1000, size: 100 };
console.log(value.from);
1000

What it prints (run when this page was built)

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