Answers for "javascript dice throw"

10

javascript dice throw

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