n-sided dice, the functional way
npm install @nightlycommit/d-n
import {createDice} from "d-n";
const d2 = createDice(2);
d2(); // return an integer greater or equal to 1 and lower or equal to 2
Read the documentation for more information.
Apache-2.0 © Eric MORAND
Generated using TypeDoc