Created
September 3, 2016 14:53
-
-
Save sozysozbot/587b0adc1ba963dc12313839dc5b205e to your computer and use it in GitHub Desktop.
outputs 2-letter cmavo randomly (duplicate allowed)
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
<script> | |
var n = prompt("#",9); | |
var conso = ".bcdfgjklmnprstvxz"; | |
var single_vowel = "aeiou"; | |
function choose_one(arr) | |
{ | |
return arr[Math.random()*arr.length|0]; | |
} | |
for(var i=0; i<n;i++){ | |
document.write(choose_one(conso)+choose_one(single_vowel)+" "); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment