logo
Ryan's Webpage
 

<html>
<body>
<script>
// by Ryan Te
// 10/5/07
// this program will roll a one half the time and a random number the rest of the time

alert("This program will roll one half the time and a randon number the rest of the time.");
var roll;
var roll2;
roll = Math.floor(Math.random()*6)+1;
if(roll == 1)
{
alert("You rolled a 1!");
}

else

{
roll2 = Math.floor(Math.random()*6)+1;
alert("You rolled a " + roll2 +" !!");
}
</script>
</body>
</html>

 

Contact Me

 

Mr. Styner's Webpage

 

Peter

Julie

Nick

Tiddus

Norman