Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

random username generator

Tags:

php

random

i am trying to create a random username generator.

i have looked at several random string generators, but none of them look like actual usernames.

i am wondering how i would go about creating a script like the one featured on this page: http://generator.my-addr.com/generate_usernames-free_username_generator_online_tool.php

basically takes a word from the dictionary, adds a certain number of random characters, and then adds a certain number of numbers.

my biggest problem is having it create realistic usernames.

like image 827
scarhand Avatar asked Sep 30 '11 16:09

scarhand


People also ask

How do I get a catchy username?

What to Know. Incorporate your favorite things, such as food, celebrities, or career aspirations. Use an online screen name generator such as SpinXO. Build an unlikely username by substituting symbols and letters, like 3 for E and $ for 5.

What is unique username?

What is a unique username? A unique username is one that stands out among the others. In most cases, such usernames include numbers, uppercase and lowercase letters, and special characters. In quite a few cases, unique usernames are at least 10 characters long.


2 Answers

Even though I don't see why you'd want to generate username, if your only concern is that they be pronounceable I would look into Markov chains, which will allow you to randomly generate pronounceable words. You could look at the following projects for examples:

  • http://passkool.sourceforge.net/
  • http://shorl.com/koremutake
like image 185
Alex Turpin Avatar answered Sep 20 '22 04:09

Alex Turpin


If you're looking for quick PHP solution to drop in, then I'd recommend:

Mudnames

It generates fantasy style names from a set of dictionaries that you can find in the install readme. (I'd also throw a short salt in after the name, just to be sure it's unique.)

like image 28
LordParsley Avatar answered Sep 18 '22 04:09

LordParsley