Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

die

import { die } from "https://git.sr.ht/~ruivieira/deno-experiments/blob/master/randomjs/mod.ts";

Returns a Distribution to return a value within [1, sideCount]

function die(sideCount: number): Distribution<number>;
§
die(sideCount: number): Distribution<number>
[src]

§Parameters

§
sideCount: number
[src]

The number of sides of the die

§Return Type