Skip to content

Commit

Permalink
New class for custom functions for number
Browse files Browse the repository at this point in the history
New class for custom functions for number
  • Loading branch information
christianjames committed Aug 21, 2015
1 parent 1c77aa0 commit 100ff58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions number-prototypes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CustomNumber = {
randomMinMax: function (min, max) {
if(min && max){
return Math.floor(Math.random() * (max - min + 1)) + min;
}
return false;
}
}

0 comments on commit 100ff58

Please sign in to comment.