@bdavidxyz/rolldice

Rolls dice between 1 and 6

Usage no npm install needed!

<script type="module">
  import bdavidxyzRolldice from 'https://cdn.skypack.dev/@bdavidxyz/rolldice';
</script>

README

Roll Dice

A small library that rolls a classic dice : 1 to 6.

Installation

npm install @bdavidxyz/rolldice

Usage

var rollDice = require('@bdavidxyz/rolldice');

var rolled = rollDice();

console.log(rolled);

Output should be a number between 1 (inclusive) and 6 (inclusive)

Tests

No test.

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style.