Articles → JavaScript → Math.Random() Function In Javascript
Math.Random() Function In Javascript
Purpose
Example
<html>
<head>
<title>Math.Random demo</title>
<script>
alert(Math.random());
</script>
</head>
<body></body>
</html>
Output
Click to Enlarge