Make your own free website on Tripod.com

~Chao Li~

~Kumo no Mukou, Yakusoku no Basho~

 
~~~~

<html>
<head>
<title>Project One</title>
<script>
//Chao Li. October 2, 2007.

var roll = 0;
var fortune = " ";

roll = Math.floor(Math.random() * 5) + 1;
switch(roll) {
case 1:
fortune = "Your going to die.";
break;
case 2:
fortune = "Do not take that choice.";
break;
case 3:
fortune = "Go for it.";
break;
case 4:
fortune = "Things are pretty good.";
break;
case 5:
fortune = "Black is your lucky color for today.";
break;
default:
fortune = "ERROR";
}
alert(fortune);

</script>
</head>
</html>

 

 
 
 
~~~~