Make your own free website on Tripod.com
Hello

Welcome to my page!

Javascript

 
Links

Die roller

Hit refresh to see a new dice roll

<script>
//Die Roller
//Julio Maravilla October 1

var rollRaw;
var rollBigger;
var rollInt;
var result;

rollRaw= Math.random();
rollBigger= rollRaw * 6;
rollInt= Math.floor(rollBigger);
rollFinal= rollInt +1;

result= "rollRaw: " + rollRaw + "\n";
result +="rollBigger: " + rollBigger + "\n";
result += "rollInt: " +rollInt + "\n";
result += "rollFinal: " + rollFinal + "\n"

alert(result);

</script>

 

 

Links

Contact me

Favorite links

Computer Science

Five Classmates