Permalink
Browse files

Minor fix on Lorem Ipsum generator

  • Loading branch information...
1 parent f3c278c commit 5f02784e676e1d681c460c22132a3a53c40c0a7a @sergeche sergeche committed Jun 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/generators/lorem-ipsum.js
@@ -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);
}

0 comments on commit 5f02784

Please sign in to comment.