Skip to content

Instantly share code, notes, and snippets.

@taizooo
Last active December 28, 2015 09:39
Show Gist options
  • Save taizooo/7480544 to your computer and use it in GitHub Desktop.
Save taizooo/7480544 to your computer and use it in GitHub Desktop.
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