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

dice

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

Returns a distribution that returns an array of length dieCount of values within [1, sideCount]

function dice(sideCount: number, dieCount: number): Distribution<number[]>;
§
dice(sideCount: number, dieCount: number): Distribution<number[]>
[src]

§Parameters

§
sideCount: number
[src]

The number of sides of each die

§
dieCount: number
[src]

The number of dice

§Return Type