Skip to content
Browse files

Fix random.between.

  • Loading branch information...
1 parent c2032eb commit c92fd9bbc475c7ab3d8abeb3f01c0cc334120c0e @wtaysom committed
Showing with 1 addition and 3 deletions.
  1. +1 −1 game/PMCRandom.js
  2. +0 −2 notes.md
View
2 game/PMCRandom.js
@@ -40,7 +40,7 @@ PMCRandom.prototype.random = function() {
}
PMCRandom.prototype.between = function(lowerLimit, upperLimit) {
- return this.rand(upperLimit) + lowerLimit;
+ return this.rand(upperLimit - lowerLimit) + lowerLimit;
}
global.PMCRandom = PMCRandom;
View
2 notes.md
@@ -200,8 +200,6 @@ How to refactor:
!! note what we did do; clean it so we have everything in one place
!! multiple baddies, weapons, powerups
-!! dude random.between sucks
-!! meet on Wednesday 16, 23
## Tools

0 comments on commit c92fd9b

Please sign in to comment.
Something went wrong with that request. Please try again.