6 Sided Die

HTML
<div class="well well-sm container"> <button onClick="six()" class="btn btn-primary btn-block">ROLL</button> <p id="six"></p> </div>
CSS
.well { margin-top: 10px; } p { font-size: 5em; text-align: center; }
JAVASCRIPT
function six(){ document.getElementById("six").innerHTML = Math.floor(Math.random() * 6) + 1; }
Expand for more options Login