YARP
Yet Another Robot Platform
ThreadSafeRandScalar Class Reference
+ Inheritance diagram for ThreadSafeRandScalar:

Public Member Functions

 ThreadSafeRandScalar ()
 
void init ()
 
void init (int s)
 
double get (double min=0.0, double max=1.0)
 
- Public Member Functions inherited from yarp::math::RandScalar
 RandScalar (int seed)
 
 RandScalar ()
 
 ~RandScalar ()
 
void init ()
 Initialize the random generator using current time (time(0)). More...
 
void init (int seed)
 Initialize the random generator. More...
 
int getSeed ()
 Get the seed. More...
 
double get ()
 Generate a random number from a uniform distribution. More...
 
double get (double min, double max)
 Generate a random number from a uniform distribution within [min, max]. More...
 

Detailed Description

Definition at line 28 of file Rand.cpp.

Constructor & Destructor Documentation

◆ ThreadSafeRandScalar()

ThreadSafeRandScalar::ThreadSafeRandScalar ( )
inline

Definition at line 32 of file Rand.cpp.

Member Function Documentation

◆ get()

double ThreadSafeRandScalar::get ( double  min = 0.0,
double  max = 1.0 
)
inline

Definition at line 51 of file Rand.cpp.

◆ init() [1/2]

void ThreadSafeRandScalar::init ( )
inline

Definition at line 37 of file Rand.cpp.

◆ init() [2/2]

void ThreadSafeRandScalar::init ( int  s)
inline

Definition at line 44 of file Rand.cpp.


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