Skip to content

Commit

Permalink
bug fix in Random.nextDoubleInRange
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Aug 17, 2020
1 parent 0ad8cc8 commit 23a9296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/Random.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ inherit( Object, Random, {
nextDoubleInRange( range ) {
assert && assert( range instanceof Range, 'invalid range' );
if ( range.min < range.max ) {
return phet.joist.random.nextDoubleBetween( range.min, range.max );
return this.nextDoubleBetween( range.min, range.max );
}
else {
// because random.nextDoubleBetween requires min < max
Expand Down

0 comments on commit 23a9296

Please sign in to comment.