Minimal Standard RANdom number generator.
More...
|
#define | BN_CK_UNIF(_p) BU_CKMAG(_p, BN_UNIF_MAGIC, "bn_unif") |
|
#define | BN_CK_GAUSS(_p) BU_CKMAG(_p, BN_GAUSS_MAGIC, "bn_gauss") |
|
#define | BN_UNIF_LONG(_p) |
|
#define | BN_UNIF_DOUBLE(_p) |
|
#define | BN_UNIF_CIRCLE(_p, _x, _y, _r) |
|
#define | BN_UNIF_SPHERE(_p, _x, _y, _z, _r) |
|
#define | BN_GAUSS_DOUBLE(_p) |
|
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
◆ BN_CK_UNIF
Definition at line 62 of file msr.h.
◆ BN_CK_GAUSS
Definition at line 63 of file msr.h.
◆ BN_UNIF_LONG
Value: (((
_p)->msr_long_ptr) ? \
(
_p)->msr_longs[--(
_p)->msr_long_ptr] :
\
Definition at line 241 of file msr.h.
◆ BN_UNIF_DOUBLE
Value: (((
_p)->msr_double_ptr) ? \
(
_p)->msr_doubles[--(
_p)->msr_double_ptr] :
\
Definition at line 245 of file msr.h.
◆ BN_UNIF_CIRCLE
Value: { \
do { \
#define BN_UNIF_DOUBLE(_p)
Definition at line 250 of file msr.h.
◆ BN_UNIF_SPHERE
Value:
Definition at line 257 of file msr.h.
◆ BN_GAUSS_DOUBLE
Value: (((
_p)->msr_gauss_ptr) ? \
(
_p)->msr_gausses[--(
_p)->msr_gauss_ptr] :
\
Definition at line 265 of file msr.h.
◆ bn_unif_init()
struct bn_unif * bn_unif_init |
( |
long |
setseed, |
|
|
int |
method |
|
) |
| |
|
extern |
◆ bn_unif_free()
◆ bn_unif_long_fill()
◆ bn_unif_double_fill()
◆ bn_gauss_init()
struct bn_gauss * bn_gauss_init |
( |
long |
setseed, |
|
|
int |
method |
|
) |
| |
|
extern |
◆ bn_gauss_free()
◆ bn_gauss_fill()