Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix random.between.

  • Loading branch information...
commit c92fd9bbc475c7ab3d8abeb3f01c0cc334120c0e 1 parent c2032eb
@wtaysom authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.