Markov Name Generator
Classes | Public Member Functions
MCNGen.NameGenerator Class Reference

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:
samplesList of sample names.
orderHigher order means that the generated words are more like the samples but it limits the maximum amount of possible combinations
minLengthMinimum length for the generated names.
amountDesired 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:
samplesArray of sample names
ordersee http://en.wikipedia.org/wiki/Markov_chain
minLengthMinimum length for the generated names.
amountDesired 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:
samplesComma or new line seperated sample names
ordersee http://en.wikipedia.org/wiki/Markov_chain
minLengthMinimum length for the generated names.
amountDesired amount of names to generate. Might fall short if not enough samples.
Returns:

The documentation for this class was generated from the following file: