Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[minor] `Math.floor` instead of `Math.ceil`

  • Loading branch information...
commit 075b0eb6b8c4cd35a3f6af0cc0cec2e939fd1d3d 1 parent 796ac5d
@mmalecki mmalecki authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/vows
View
2  bin/vows
@@ -248,7 +248,7 @@ if (! options.watch) {
var source = files.slice(0);
files.length = 0;
while (source.length) {
- files.push(source.splice(Math.ceil(Math.random() * source.length) - 1, 1)[0]);
+ files.push(source.splice(Math.floor(Math.random() * source.length), 1)[0]);
}
}

0 comments on commit 075b0eb

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