Minimal Standard RANdom number generator. More...
#include "common.h"
#include <stdio.h>
#include <math.h>
#include "bu.h"
#include "vmath.h"
#include "bn.h"
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 | |
struct bn_unif * | bn_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) |
struct bn_gauss * | bn_gauss_init (long int setseed, int method) |
double | bn_gauss_fill (struct bn_gauss *p) |
void | bn_gauss_free (struct bn_gauss *p) |
Minimal Standard RANdom number generator.
Definition in file msr.c.