#include <random_generator.h>
Public Member Functions | |
std::string | generate (int length) |
UniformRandomAsciiString () | |
Protected Attributes | |
UniformRandomInteger | m_random_generator |
random number generator More... | |
Static Protected Attributes | |
static const std::string | s_ascii_chars = " !\"#$%&'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijklmnopqrstuvwxyz{|}~" |
list of ascii chars: " !\"#$%&'()*+,-./0123456789:;=?@ ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_abcdefghijklmnopqrstuvwxyz{|}~" More... | |
class UniformRandomAsciiString generates uniform distributed ascii strings.
Definition at line 104 of file random_generator.h.
sick_scan::UniformRandomAsciiString::UniformRandomAsciiString | ( | ) |
UniformRandomAsciiString constructor
Definition at line 98 of file random_generator.cpp.
std::string sick_scan::UniformRandomAsciiString::generate | ( | int | length | ) |
Creates and returns a random ascii string
[in] | length | length of string |
Definition at line 107 of file random_generator.cpp.
|
protected |
random number generator
Definition at line 126 of file random_generator.h.
|
staticprotected |
list of ascii chars: " !\"#$%&'()*+,-./0123456789:;=?@ ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_abcdefghijklmnopqrstuvwxyz{|}~"
static list of ascii chars
Definition at line 127 of file random_generator.h.