Created
November 19, 2013 23:46
-
-
Save fliptopbox/7554684 to your computer and use it in GitHub Desktop.
lorem ipsum test generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var lorem = (function () { | |
/* (c) 2013 - Qwack Ltd. -------------------------- */ | |
var i = 0, | |
l = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmodtempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat nonproident, sunt in culpa qui officia deserunt mollit anim id est laborum.'.split(' '), | |
n = l.length, | |
r = function (n) { return Math.floor((Math.random()*n)+1); }, | |
u = r(100), | |
t = '', | |
a = '', | |
w = function (q) { | |
t = ''; | |
for(i = 0; i < (q || r(n)); i += 1) { | |
a = l[r(n - 1)]; | |
t += (a + ' '); | |
} | |
return (t + '('+ i +')'); | |
}, | |
exec = function (q) { /* i see you seeing me */ return w(q); }; | |
return exec; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment