Create random pronounceable nicknames for yourself and your friends.
Run the code to make a random sequence of 6 letters. Try it several times; try lengths other than 6:
RandomChoice[CharacterRange["a", "z"], 6]
Get lists of vowels and consonants. Try adding “y” to the list of vowels:
vowels = {"a", "e", "i", "o", "u"};
consonants = Complement[CharacterRange["a", "z"], vowels]
Make random “words” out of 4 letters. Try other patterns of consonants and vowels:
Note: be sure you have already run the previous step.
{RandomChoice[consonants], RandomChoice[vowels],
RandomChoice[consonants], RandomChoice[vowels]}
Make a list of 4 alternations of consonants and vowels. Try numbers other than 4:
Flatten[Table[{RandomChoice[consonants], RandomChoice[vowels]}, {4}]]
Display the letters as a “word” in 40-point type. Try changing the size to something other than 40—for example, 80:
Style[StringJoin[
Flatten[Table[{RandomChoice[consonants],
RandomChoice[vowels]}, {4}]]], 40]
Make a column of 6 random names. Try numbers of names other than 6:
Column[Table[
Style[StringJoin[
Flatten[Table[{RandomChoice[consonants],
RandomChoice[vowels]}, {4}]]], 40], {6}]]
Share It—make a website that gives you a different random name each time you visit it: