Skip to content

Commit 4e635ab

Browse files
authored
Update functions.js
1 parent 398e7ba commit 4e635ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function randInt(min, max) {
55

66
// returns a random float between min (included) and max (included)
77
function randFloat(min, max) {
8-
return Math.random() * (max - min + 1) + min;
8+
return Math.random() * (max - 1 - min + 1) + min;
99
}
1010

1111
// returns a random item from the list of items passed in

0 commit comments

Comments
 (0)