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


Picture showing the output of Math.Random function in JavaScript



Posted By  -  Karan Gupta
 
Posted On  -  Monday, May 11, 2020

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250