diff --git a/number-prototypes.js b/number-prototypes.js new file mode 100644 index 0000000..7fb6c64 --- /dev/null +++ b/number-prototypes.js @@ -0,0 +1,8 @@ +CustomNumber = { + randomMinMax: function (min, max) { + if(min && max){ + return Math.floor(Math.random() * (max - min + 1)) + min; + } + return false; + } +}