Roll A Die

[Total: 0    Average: 0/5]

Roll a die. This shows how to use math to roll a die.

Body Code:

<form name=exf1>
<input type=text name=showdie value="roll the die">
<a href="javascript:dieIs()">roll the die</a>
var diceSides= new Array("One","Two","Three","Four","Five","Six");
function dieIs() {

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *