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 · React hooks

DailySeedtype

Today, as useDailySeed hands it back: the day written YYYY-MM-DD, and its seed.

Import it

import type { DailySeed } from "@johnmorrisdotca/tane/react";

Definition

type DailySeed = {
    readonly day: DayKey;
    readonly seed: number;
};

Members

NameTypeDescription
daystring
seednumber

Examples

import type { DailySeed } from "@johnmorrisdotca/tane/react";
import { dailySeed, dayKey } from "@johnmorrisdotca/tane";

const at = new Date("2026-10-11T12:00:00Z");
const value: DailySeed = { day: dayKey(at), seed: dailySeed(at) };
console.log(value.day);
2026-10-11

What it prints (run when this page was built)

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