diff --git a/globalScript.js b/globalScript.js new file mode 100644 index 0000000..02d0ffe --- /dev/null +++ b/globalScript.js @@ -0,0 +1,11 @@ +function randomFloat(min, max) { + return Math.random() * (max - min) + min; +} + +function randomIntFrom0(max) { + return Math.floor(Math.random() * max) +} + +function randomInt(min, max) { + return Math.floor(Math.random() * (max - min) + min) +} \ No newline at end of file diff --git a/index.html b/index.html index 9e7cbf7..15bf0dc 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,8 @@
+ + + +