#include <helpers.h>
Definition at line 41 of file helpers.h.
◆ TRand()
tesseract::TRand::TRand |
( |
| ) |
|
|
inline |
◆ IntRand()
inT32 tesseract::TRand::IntRand |
( |
| ) |
|
|
inline |
◆ set_seed() [1/2]
void tesseract::TRand::set_seed |
( |
uinT64 |
seed | ) |
|
|
inline |
◆ set_seed() [2/2]
void tesseract::TRand::set_seed |
( |
const std::string & |
str | ) |
|
|
inline |
Definition at line 49 of file helpers.h.
50 std::hash<std::string> hasher;
51 set_seed(static_cast<uinT64>(hasher(str)));
void set_seed(uinT64 seed)
◆ SignedRand()
double tesseract::TRand::SignedRand |
( |
double |
range | ) |
|
|
inline |
◆ UnsignedRand()
double tesseract::TRand::UnsignedRand |
( |
double |
range | ) |
|
|
inline |
The documentation for this class was generated from the following file:
- /home/stefan/src/github/tesseract-ocr/tesseract/ccutil/helpers.h