function calculate() {
let start = Date.now();
for (let count = 0; count < 100000; count++) {
dice = Math.ceil(Math.random() * 6);
}
let elapsed = Date.now() - start;
document.getElementById("lesstime").innerHTML = "The elapsed time was " + elapsed + " milleseconds. ";
}