Skip to content

Instantly share code, notes, and snippets.

@tsmd
Created April 3, 2016 03:23
Show Gist options
  • Save tsmd/e8d15a21dafe0de224bb8d25cb8b8783 to your computer and use it in GitHub Desktop.
Save tsmd/e8d15a21dafe0de224bb8d25cb8b8783 to your computer and use it in GitHub Desktop.
function hiragana_random(size) {
var str = '';
while (size--) {
str += String.fromCharCode(12353 + Math.floor(Math.random() * 82));
}
return str;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment