YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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)).
 
void init (int seed)
 Initialize the random generator.
 
int getSeed ()
 Get the seed.
 
double get ()
 Generate a random number from a uniform distribution.
 
double get (double min, double max)
 Generate a random number from a uniform distribution within [min, max].
 

Detailed Description

Definition at line 25 of file Rand.cpp.

Constructor & Destructor Documentation

◆ ThreadSafeRandScalar()

ThreadSafeRandScalar::ThreadSafeRandScalar ( )
inline

Definition at line 29 of file Rand.cpp.

Member Function Documentation

◆ get()

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

Definition at line 48 of file Rand.cpp.

◆ init() [1/2]

void ThreadSafeRandScalar::init ( )
inline

Definition at line 34 of file Rand.cpp.

◆ init() [2/2]

void ThreadSafeRandScalar::init ( int  s)
inline

Definition at line 41 of file Rand.cpp.


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