PIPS-NLP
Functions
randUtils.h File Reference
#include "time.h"

Go to the source code of this file.

Functions

void normalen_ (int *n, double *numbers)
 
void zufalli_ (int *)
 
void zufall_ (int *n, double *numbers)
 
void normalRand (int n, double *vals)
 
void normalRand (double mean, double std, int n, double *vals)
 

Function Documentation

void normalen_ ( int *  n,
double *  numbers 
)

Generates normal numbers: mean=0, std=1

'zufalli_' must be called before to initialize the seed.

void normalRand ( int  n,
double *  vals 
)
inline

Generates normal numbers: mean=0, std=1

void normalRand ( double  mean,
double  std,
int  n,
double *  vals 
)
inline
void zufall_ ( int *  n,
double *  numbers 
)

Generates uniform numbers in [0,1]

'zufalli_' must be called before to initialize the seed.

void zufalli_ ( int *  )

Initializes the seed. If called with 0, the seed is initialized to 1802.