Answers for "dice roller javascript"

10

dice roller javascript

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

// Examples
throwdice();  //2
Posted by: Guest on July-03-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language