NDOSolver / FiOracle
Interfaces and Solvers for NonDifferentiable Optimization
Loading...
Searching...
No Matches
OPTrand Class Reference

#include <OPTUtils.h>

Public Member Functions

 OPTrand (void)
 constructor of the class
 
double rand (void)
 
void srand (long seed)
 Seeds the random generator for this instance of OPTrand.
 

Private Attributes

int myseed
 

Detailed Description

Provide a common interface to the different random generators that are available in different platforms.

Member Function Documentation

◆ rand()

double rand ( void )
inline

Returns a random number uniformly distributed in [0, 1).

Note
each object of class OPTrand has its own sequence, so that multiple OPTrand objects being used within the same program do not interfere with each other (as opposed to what C random routines would do).

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