msr.c File Reference

Minimal Standard RANdom number generator. More...

#include "common.h"
#include <stdio.h>
#include <math.h>
#include "machine.h"
#include "bu.h"
#include "vmath.h"
#include "bn.h"

Include dependency graph for msr.c:

Go to the source code of this file.

Defines

#define BN_MSR_MAXTBL   4096
#define A   16807
#define M   2147483647
#define DM   2147483647.0
#define Q   127773
#define R   2836

Functions

bn_unifbn_unif_init (long int setseed, int method)
long bn_unif_long_fill (struct bn_unif *p)
double bn_unif_double_fill (struct bn_unif *p)
void bn_unif_free (struct bn_unif *p)
bn_gaussbn_gauss_init (long int setseed, int method)
double bn_gauss_fill (struct bn_gauss *p)
void bn_gauss_free (struct bn_gauss *p)


Detailed Description

Minimal Standard RANdom number generator.

From:
Stephen K. Park and Keith W. Miller
"Random number generators: good ones are hard to find"
CACM vol 31 no 10, Oct 88
Author:
Christopher T. Johnson - 90/04/20
Source -
The U. S. Army Research Laboratory
Aberdeen Proving Ground, Maryland 21005-5068 USA

Definition in file msr.c.


Generated on Mon Sep 18 01:25:03 2006 for BRL-CAD by  doxygen 1.4.6