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.
- Fork the main repository
- Code
- Implement tests using tape
- Issue a pull request keeping in mind that all pull requests must reference an issue in the issue queue
Apache-2.0 © Eric MORAND