MS-RCPSP
Static Public Member Functions | List of all members
Util::Random Class Reference

Helper class used to generate random values. More...

#include <Random.h>

Static Public Member Functions

static int randint ()
 
static bool rand (double prob)
 

Detailed Description

Helper class used to generate random values.

Definition at line 7 of file Random.h.

Member Function Documentation

bool Util::Random::rand ( double  prob)
static

Checks whether the randomly generated number satisfied the given probability.

Parameters
probProbability value from 0 to 1.

Definition at line 11 of file Random.cpp.

int Util::Random::randint ( )
static

Generates random integer number.

Definition at line 37 of file Random.cpp.


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