Last active
December 28, 2015 09:39
-
-
Save taizooo/7480544 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function randlen(x, l) { | |
var n = Math.floor(l * Math.random()); | |
var s = '' | |
for (var i = 0; i < n; i++) { | |
s += x; | |
} | |
return s; | |
} | |
// randlen('\u200B',100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment