|
Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
#include <RandomStringFactory.h>
Static Public Member Functions | |
| static string::LinearString< std::string > | generateLinearString (size_t size, size_t alphabetSize, bool randomizedAlphabet, bool integerSymbols) |
| static string::LinearString< std::string > | generateLinearString (size_t size, size_t alphabetSize, bool randomizedAlphabet) |
| template<class SymbolType > | |
| static string::LinearString< SymbolType > | generateLinearString (size_t size, ext::set< SymbolType > alphabet) |
| template<class SymbolType > | |
| static string::LinearString< SymbolType > | generateLinearString (size_t size, ext::vector< SymbolType > alphabet) |
Generator of random strings.
|
static |
Generates a random string of given size
| SymbolType | the type of symbols of the random string |
| size | the length of the generated string |
| alphabet | alphabet of the generated string |
|
static |
Generates a random string of given size
| SymbolType | the type of symbols of the random string |
| size | the length of the generated string |
| alphabet | alphabet of the generated string |
|
static |
Generates a random string of given size.
| size | the length of the generated string |
| alphabetSize | size of the alphabet (1-26 for characters) |
| randomizedAlphabet | selects random symbols from a-z range if true |
|
static |
Generates a random string of given size.
| size | the length of the generated string |
| alphabetSize | size of the alphabet (1-26 for characters and 0-INT_MAX for integers) |
| randomizedAlphabet | selects random symbols from a-z range if true |
| integerSymbols | use integers as symbols in the generated string is true, randomize alphabet is not used if integer alphabet is requested |