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

faceRangefunction

The lowest and highest face of one die.

Import it

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

Definition

function faceRange(sides: Sides): { low: number; high: number; }

Parameters

NameTypeDescription
sidesSides

A numbered die size or F for Fate dice.

Returns

{ low: number; high: number; }

The lowest and highest face of one die.

Examples

import { faceRange } from "@johnmorrisdotca/korokoro";
console.log(faceRange("F"));
{ low: -1, high: 1 }

What it prints (run when this page was built)

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