-
Notifications
You must be signed in to change notification settings - Fork 0
/
RngStream.h
64 lines (26 loc) · 1.01 KB
/
RngStream.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* RngStream.h for ANSI C */
#ifndef RNGSTREAM_H
#define RNGSTREAM_H
typedef struct RngStream_InfoState * RngStream;
struct RngStream_InfoState {
double Cg[6], Bg[6], Ig[6];
int Anti;
int IncPrec;
char *name;
};
int RngStream_SetPackageSeed (unsigned long seed[6]);
RngStream RngStream_CreateStream (const char name[]);
void RngStream_DeleteStream (RngStream *pg);
void RngStream_ResetStartStream (RngStream g);
void RngStream_ResetStartSubstream (RngStream g);
void RngStream_ResetNextSubstream (RngStream g);
void RngStream_SetAntithetic (RngStream g, int a);
void RngStream_IncreasedPrecis (RngStream g, int incp);
int RngStream_SetSeed (RngStream g, unsigned long seed[6]);
void RngStream_AdvanceState (RngStream g, long e, long c);
void RngStream_GetState (RngStream g, unsigned long seed[6]);
void RngStream_WriteState (RngStream g);
void RngStream_WriteStateFull (RngStream g);
double RngStream_RandU01 (RngStream g);
int RngStream_RandInt (RngStream g, int i, int j);
#endif