tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::TRand Class Reference

#include <helpers.h>

Public Member Functions

 TRand ()
 
void set_seed (uint64_t seed)
 
void set_seed (const std::string &str)
 
int32_t IntRand ()
 
double SignedRand (double range)
 
double UnsignedRand (double range)
 

Private Member Functions

void Iterate ()
 

Private Attributes

uint64_t seed_
 

Constructor & Destructor Documentation

◆ TRand()

tesseract::TRand::TRand ( )
inline

Member Function Documentation

◆ IntRand()

int32_t tesseract::TRand::IntRand ( )
inline

◆ Iterate()

void tesseract::TRand::Iterate ( )
inlineprivate

◆ set_seed() [1/2]

void tesseract::TRand::set_seed ( uint64_t  seed)
inline

◆ set_seed() [2/2]

void tesseract::TRand::set_seed ( const std::string &  str)
inline

◆ SignedRand()

double tesseract::TRand::SignedRand ( double  range)
inline

◆ UnsignedRand()

double tesseract::TRand::UnsignedRand ( double  range)
inline

Member Data Documentation

◆ seed_

uint64_t tesseract::TRand::seed_
private

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