dice roller javascript
snippet in javascript

dice roller javascript

user1714

const throwdice = () => ~~(Math.random() * 6) + 1;

// Examples
throwdice();  //2