C++ Utilities  4.17.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Namespaces | Functions
random.h File Reference
#include "../global.h"
#include <functional>
Include dependency graph for random.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 RandomUtilities
 Contains utility functions for generating random character sequences.
 

Functions

CPP_UTILITIES_EXPORT void RandomUtilities::generateRandomCharacterSequence (char *result, unsigned int length, bool useSmallLetters, bool useCapitalLetters, bool useNumbers, bool useSymbols, bool useAtLeastOneOfEachCategory)
 Generates a random character sequence using std::rand(). More...
 
CPP_UTILITIES_EXPORT void RandomUtilities::generateRandomCharacterSequence (char *result, unsigned int length, std::function< int()> randomizer, int highestRandomNumber, bool useSmallLetters, bool useCapitalLetters, bool useNumbers, bool useSymbols, bool useAtLeastOneOfEachCategory)
 Generates a random character sequence using the given randomizer. More...