JSFiddle - React, Tailwind, and code Playground
by yasumodev
JavaScript
function dice(min,max) {
return Math.floor(Math.random() * (max+1)) + min;
}
var s = "";
s += dice(1,6) + ",";
s += dice(1,6) + ",";
s += dice(1,6) + ",";
s += dice(1,6) + ",";
s += dice(1,6) + ",";
s += dice(1,6) + ",";
s += dice(1,6) + ",";
s += dice(1,6) + ",";
s += dice(1,6) + ",";
alert(s);