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

chinchirorinHandWithinfunction

The chance that three dice make a chinchirorin hand within a number of throws: each throw makes one half the time, so three come to 7 in 8.

Import it

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

Definition

function chinchirorinHandWithin(throws: number): Fraction

Parameters

NameTypeDescription
throwsnumber

The number of independent throws to allow.

Returns

Fraction

The chance that three dice make a chinchirorin hand within a number of throws: each throw makes one half the time, so three come to 7 in 8.

Examples

import { chinchirorinHandWithin } from "@johnmorrisdotca/korokoro";
console.log(chinchirorinHandWithin(3).map(String));
[ '7', '8' ]

What it prints (run when this page was built)

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