| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 82eafa9 commit e526e07
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ const height = canvas.height = window.innerHeight; | |||
| 8 | 8 | ||
| 9 | 9 | // function to generate random number | |
| 10 | 10 | ||
| 11 | - function random(min,max) { | ||
| 12 | - const num = Math.floor(Math.random()*(max-min)) + min; | ||
| 11 | + function random(min, max) { | ||
| 12 | + const num = Math.floor(Math.random() * (max - min + 1)) + min; | ||
| 13 | 13 | return num; | |
| 14 | 14 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments