src/RNG.cpp File Reference

#include "VRPH.h"

Go to the source code of this file.

Defines

#define MODULUS   2147483647
#define MULT   16807

Functions

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

Variables

static long long zrng []


Define Documentation

#define MODULUS   2147483647

Definition at line 14 of file RNG.cpp.

#define MULT   16807

Definition at line 15 of file RNG.cpp.


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.


Variable Documentation

long long zrng[] [static]

Definition at line 19 of file RNG.cpp.


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