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.


Generated on Thu Mar 10 11:08:49 2011 for VRPH by  doxygen 1.5.9