Skip to content

Commit

Permalink
[minor] Math.floor instead of Math.ceil
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Jun 22, 2012
1 parent 796ac5d commit 075b0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}

Expand Down

0 comments on commit 075b0eb

Please sign in to comment.