Permalink
Browse files

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

  • Loading branch information...
1 parent 796ac5d commit 075b0eb6b8c4cd35a3f6af0cc0cec2e939fd1d3d @mmalecki mmalecki committed Jun 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/vows
View
@@ -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.