JavaScript html CSS Roll Dice Game Game за шагом

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

// Examples
throwdice();  //2
Batman