Skip to content

Commit c309e55

Browse files
Merge pull request Nivedita-coder#17 from jishu-yadav/patch-4
Create js random
2 parents 95a9141 + 8f1ee04 commit c309e55

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎js random‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
5+
<h2>JavaScript Math.random()</h2>
6+
7+
<p>Math.random() returns a random number between 0 (included) and 1 (excluded):</p>
8+
9+
<p id="demo"></p>
10+
11+
<script>
12+
document.getElementById("demo").innerHTML = Math.random();
13+
</script>
14+
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)