Skip to the content

Korokoroコロコロ

Roll mixed dice or type notation, compare exact probabilities, keep a history and replay seeded rolls.

Korokoro describes something small rolling in Japanese. About the name

Contents

Reference · Rolls and exact odds

newSeedfunction

A short seed anybody can read aloud or type: eight letters and digits.

Import it

import { newSeed } from "@johnmorrisdotca/korokoro";

Definition

function newSeed(source?: RandomSource): string

Parameters

NameTypeDescription
source (optional)RandomSource

A source of unsigned 32-bit integers; crypto by default where optional.

Returns

string

A short seed anybody can read aloud or type: eight letters and digits.

Examples

import { newSeed } from "@johnmorrisdotca/korokoro";
import { seededSource } from "@johnmorrisdotca/korokoro";
console.log(newSeed(seededSource("table")));
khj72ewm

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/korokoro 1.16.0.