Random number from 0 to 10 : Random : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Random »

 

Random number from 0 to 10



<html>
<body>

<script type="text/javascript">

    no=Math.random()*10
    document.write(Math.round(no))
    
</script>

</body>
</html>



           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Random