Generate a Random Number

[Total: 0    Average: 0/5]

This shows how to have a random number generated.

Body Code:

<script type=text/javascript> 
var _ran = Math.random();
document.write("Random number = "+_ran);
document.write("<BR>Multiply by 1000 = "+(_ran *= 1000));
document.write("<BR>Make it an integer ="+(_ran = parseInt(_ran)));
</script>

Times Viewed: 0

Leave a Reply

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