We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 398e7ba commit 4e635abCopy full SHA for 4e635ab
functions.js
@@ -5,7 +5,7 @@ function randInt(min, max) {
5
6
// returns a random float between min (included) and max (included)
7
function randFloat(min, max) {
8
- return Math.random() * (max - min + 1) + min;
+ return Math.random() * (max - 1 - min + 1) + min;
9
}
10
11
// returns a random item from the list of items passed in
0 commit comments