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

yahtzeeWithinfunction

The chance of a Yahtzee (five dice alike) within a number of rolls, holding the largest group each time: 1 roll is 1 in 1296, and the usual three come to 347897 in 7558272, about 4.6%.

Import it

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

Definition

function yahtzeeWithin(rolls: number): Fraction

Parameters

NameTypeDescription
rollsnumber

Completed rolls, or the number of attempts where this parameter is numeric.

Returns

Fraction

The chance of a Yahtzee (five dice alike) within a number of rolls, holding the largest group each time: 1 roll is 1 in 1296, and the usual three come to 347897 in 7558272, about 4.6%.

Examples

import { yahtzeeWithin } from "@johnmorrisdotca/korokoro";
console.log(yahtzeeWithin(3).map(String));
[ '347897', '7558272' ]

What it prints (run when this page was built)

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