Generates random names using Markov chains. Based on http://www.siliconcommandergames.com/MarkovNameGenerator.htm.
More...
List of all members.
Classes |
class | Markov |
| Inner class for the name generator.
|
Public Member Functions |
List< string > | Run (List< string > samples, int order, int minLength, int amount) |
| Generates random names based on the given list of strings and returns the result.
|
List< string > | Run (string[] samples, int order, int minLength, int amount) |
| Generates random names based on the given list of strings and returns the result.
|
List< string > | Run (string samples, int order, int minLength, int amount) |
| Generates random names based on the given list of strings and returns the result.
|
Detailed Description
Generates random names using Markov chains. Based on http://www.siliconcommandergames.com/MarkovNameGenerator.htm.
Author: Joonas Rajala
Member Function Documentation
List<string> MCNGen.NameGenerator.Run |
( |
List< string > |
samples, |
|
|
int |
order, |
|
|
int |
minLength, |
|
|
int |
amount |
|
) |
| |
Generates random names based on the given list of strings and returns the result.
- Parameters:
-
samples | List of sample names. |
order | Higher order means that the generated words are more like the samples but it limits the maximum amount of possible combinations |
minLength | Minimum length for the generated names. |
amount | Desired amount of names to generate. Might fall short if not enough samples. |
- Returns:
List<string> MCNGen.NameGenerator.Run |
( |
string[] |
samples, |
|
|
int |
order, |
|
|
int |
minLength, |
|
|
int |
amount |
|
) |
| |
Generates random names based on the given list of strings and returns the result.
- Parameters:
-
samples | Array of sample names |
order | see http://en.wikipedia.org/wiki/Markov_chain |
minLength | Minimum length for the generated names. |
amount | Desired amount of names to generate. Might fall short if not enough samples. |
- Returns:
List<string> MCNGen.NameGenerator.Run |
( |
string |
samples, |
|
|
int |
order, |
|
|
int |
minLength, |
|
|
int |
amount |
|
) |
| |
Generates random names based on the given list of strings and returns the result.
- Parameters:
-
samples | Comma or new line seperated sample names |
order | see http://en.wikipedia.org/wiki/Markov_chain |
minLength | Minimum length for the generated names. |
amount | Desired amount of names to generate. Might fall short if not enough samples. |
- Returns:
The documentation for this class was generated from the following file: