Possible Duplicate:
how to check if a string looks randomized, or human generated and pronouncable?
Is there any way to detect strings like putjbtghguhjjjanika?
Is there any algorithm that is able to detect how random a online nickname is? There are many situations where it would come in useful.
Given any alphanumeric name, the algorithm should be able to give it a "randomness" value. If the randomness value is too high, the application could then force the user to choose another name.
For example, "Mikel" would pass the test and be allowed to be used, while "Agslj" would not and be forced to choose another name
If there isn't an algorithm already available, how would I be able to create an algorithm for this?