File indexing completed on 2025-01-17 09:55:58
0001
0002
0003 #ifndef RNGSTREAM_H
0004 #define RNGSTREAM_H
0005
0006
0007
0008 typedef struct RngStream_InfoState * RngStream;
0009
0010 struct RngStream_InfoState {
0011 double Cg[6], Bg[6], Ig[6];
0012 int Anti;
0013 int IncPrec;
0014 char *name;
0015 };
0016
0017
0018 int RngStream_SetPackageSeed (unsigned long seed[6]);
0019
0020
0021 RngStream RngStream_CreateStream (const char name[]);
0022
0023
0024 void RngStream_DeleteStream (RngStream *pg);
0025
0026
0027 void RngStream_ResetStartStream (RngStream g);
0028
0029
0030 void RngStream_ResetStartSubstream (RngStream g);
0031
0032
0033 void RngStream_ResetNextSubstream (RngStream g);
0034
0035
0036 void RngStream_SetAntithetic (RngStream g, int a);
0037
0038
0039 void RngStream_IncreasedPrecis (RngStream g, int incp);
0040
0041
0042 int RngStream_SetSeed (RngStream g, unsigned long seed[6]);
0043
0044
0045 void RngStream_AdvanceState (RngStream g, long e, long c);
0046
0047
0048 void RngStream_GetState (RngStream g, unsigned long seed[6]);
0049
0050
0051 void RngStream_WriteState (RngStream g);
0052
0053
0054 void RngStream_WriteStateFull (RngStream g);
0055
0056
0057 double RngStream_RandU01 (RngStream g);
0058
0059
0060 int RngStream_RandInt (RngStream g, int i, int j);
0061
0062
0063 #endif
0064
0065