VRPH  1.0
Defines | Functions
inc/RNG.h File Reference

Go to the source code of this file.

Defines

#define NUM_RANDVALS   2000

Functions

double lcgrand (int stream)
void random_permutation (int *perm, int n)

Define Documentation

#define NUM_RANDVALS   2000

Definition at line 16 of file RNG.h.


Function Documentation

double lcgrand ( int  stream)

A run of the mill LCG.

Definition at line 79 of file RNG.cpp.

void random_permutation ( int *  perm,
int  n 
)

Randomly permutes the perm array of size n. Assumes that perm[] is already filled with the elements to be permuted.

Definition at line 110 of file RNG.cpp.