Articles → JavaScript → Math.Random() Function In JavascriptMath.Random() Function In JavascriptIn this article, we will discuss the Math.random() function in JavaScript.Purpose Math.random() function returns a number greater or equal to zero and less than one.Example <html><head><title>Math.Random demo</title><script> alert(Math.random()); </script></head><body></body></html>Output Posted By - Karan Gupta Posted On - Monday, May 11, 2020 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
<html><head><title>Math.Random demo</title><script> alert(Math.random()); </script></head><body></body></html>
Query/Feedback