Throw a dice (random integers 1-6)



examples/js/dice.js
"use strict";

var v = Math.floor( 6 * Math.random() );
console.log(v);    // 2