|
<script>
//fortune
//David Fang
//The Fortune-teller
var roll = 0;
var fortune = "";
roll = Math.floor(Math.random() * 5) + 1;
switch(roll) {
case 1:
fortune = "It looks really horrible.";
break;
case 2:
fortune = "It's kind of weird.";
break;
case 3:
fortune = "You are going to eat rotten eggs and not live!!";
break;
case 4:
fortune = "You're are just soo horrible.";
break;
case 5:
fortune = "You're not the greatest person alive!!";
break;
default:
fortune = "ERROR";
} // end switch
alert(fortune);
</script>
|
Links
1. SLHS
2. SLHSXC
3. JMMS
Contact me
Class links
Computer Science
Five Classmates
1. Julio Maravilla
2. Norman Duong
3. Huy Vo
4. Titus Green
5. Jack Li
|