Random Name Generator, in Javascript

This random name generator is one of my results on toying with Javascript. It is sometimes useful if you want to tweak your fantasy a bit! It is also useful for generating names for characters in games (especially fantasy RPGs). You can try it right away as it is written purely in HTML and Javascript.

Sometimes the generator produces non-sensible and hard-to-pronounce names, like ‘Jugxyzthw’. There are plenty of them (well, yes, plenty), and since the algorithm does not rely on English dictionary it is unavoidable. But the rest are good names that can be used for anything from game characters to country names.

This random name generator is one of my results on toying with Javascript. It is sometimes useful if you want to tweak your fantasy a bit! It is also useful for generating names for characters in games (especially fantasy RPGs). You can try it right away as it is written purely in HTML and Javascript.

Sometimes the generator produces non-sensible and hard-to-pronounce names, like ‘Jugxyzthw’. There are plenty of them (well, yes, plenty), and since the algorithm does not rely on English dictionary it is unavoidable. But the rest are good names that can be used for anything from game characters to country names.

Creating the Random Names

The algorithm is very simple, actually. The only rule is that no three consonants can be adjacent in the name. Two consonants are OK (as in Matt), one is of course permitted. The rest of the letters are generated randomly while sticking to this rule. The definition of what is a vocal and what is a consonant is crucial; Some letters also appear more often than other letters (e.g. ‘x’ vs. ‘s’). The ability to specify prefix and suffix adds slight complexity but it is easy to work around.

Thanks for trying!

AttachmentSize
namegen.html4.66 KB

101 comments

Pingback. [...] also useful for. PDF File Name: Random name generator, in javascript | leap on! Source: leapon.net » DOWNLOAD « 10 jenis anjing paling berbahaya di dunia | juru kunci Di indonesia banyak sekali jenis hantu [...]

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <pre> <i> <b>
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.

Recent comments