Skip to content

Commit

Permalink
Minor fix on Lorem Ipsum generator
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeche committed Jun 24, 2012
1 parent f3c278c commit 5f02784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/generators/lorem-ipsum.js
Expand Up @@ -113,7 +113,7 @@ zen_coding.exec(function(require, _) {
var iterations = Math.min(len, count);
var result = [];
while (result.length < iterations) {
var randIx = randint(0, len);
var randIx = randint(0, len - 1);
if (!_.include(result, randIx))
result.push(randIx);
}
Expand Down

0 comments on commit 5f02784

Please sign in to comment.