X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fnlsop.git;a=blobdiff_plain;f=random.h;fp=random.h;h=4fa9aaed51a6174bedd0850a3e98d1f02a07cc74;hp=0000000000000000000000000000000000000000;hb=5d5a9a58e9ecb4221b1c41e536b9648500b9b41d;hpb=91f24c2c4523729fa5a85c91a6b90cb8de712e4b diff --git a/random.h b/random.h new file mode 100644 index 0000000..4fa9aae --- /dev/null +++ b/random.h @@ -0,0 +1,20 @@ +/* + * random functions - header + * + * author: hackbard@hackdaworld.dyndns.org + * + */ + +#include "nlsop.h" +#include +#include + +/* function prototypes */ +int rand_init(char *rf); +int rand_close(void); +int get_rand(u32 max); +int get_rand_lgp(u32 max,double a,double b); + +#define BUFSIZE (16*1048576) /* 64 MByte */ +#define URAND_MAX 0xffffffff +