Skip to content

Commit

Permalink
Merge pull request #3 from path411/patch-1
Browse files Browse the repository at this point in the history
Fixed .integer() to calculate correct range.
  • Loading branch information
victorquinn committed Jun 26, 2013
2 parents efd05ec + 042f6b1 commit ac33abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chance.js
Expand Up @@ -49,7 +49,7 @@

// Greatest of absolute value of either max or min so we know we're
// including the entire search domain.
range = Math.max(Math.abs(options.min), Math.abs(options.min));
range = Math.max(Math.abs(options.min), Math.abs(options.max));

// Probably a better way to do this...
do {
Expand Down

0 comments on commit ac33abe

Please sign in to comment.