Generate random number : Integer : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » Integer »

 

Generate random number

















<html>
<head>
<title>numberMaker</title>
<script>
var number;

number = Math.random();
alert ("Here's my number: " + number);

</script>
</head>

<body>
<hr>
<h3>Hit the Reload key to see a new number!</h3>
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» Integer