Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Nakatai-0322 committed Dec 24, 2021
1 parent 8bd0ed8 commit c3da641
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
let max = document.getElementById("maxn").value;
let n = chance.natural({min: 0 , max: max});

function RandomNumber() {
let max = document.getElementById("maxn").value
let n = chance.natural({min: 0 , max: max});
document.getElementById("out").innerHTML = n;
console.log(n)
}

0 comments on commit c3da641

Please sign in to comment.