# OpenGraph DrawingFramework

v. snapshot-2018-03-28

Random Numbers

Provides random number generators. More...

## Functions

double ogdf::randomDouble (double low, double high)
Returns a random double value from the interval [low, high). More...

double ogdf::randomDoubleNormal (double m, double sd)
Returns a random double value from the normal distribution with mean m and standard deviation sd. More...

int ogdf::randomNumber (int low, int high)
Returns random integer between low and high (including). More...

long unsigned int ogdf::randomSeed ()
Returns a random value suitable as initial seed for a random number engine. More...

void ogdf::setSeed (int val)
Sets the seed for functions like randomSeed(), randomNumber(), randomDouble(). More...

## Detailed Description

Provides random number generators.

## ◆ randomDouble()

 double ogdf::randomDouble ( double low, double high )

Returns a random double value from the interval [low, high).

## ◆ randomDoubleNormal()

 double ogdf::randomDoubleNormal ( double m, double sd )
inline

Returns a random double value from the normal distribution with mean m and standard deviation sd.

Definition at line 157 of file basic.h.

## ◆ randomNumber()

 int ogdf::randomNumber ( int low, int high )

Returns random integer between low and high (including).

## ◆ randomSeed()

 long unsigned int ogdf::randomSeed ( )

Returns a random value suitable as initial seed for a random number engine.