added nlsop_client code
[physik/nlsop.git] / random.h
1 /*
2  * random functions - header
3  *
4  * author: hackbard@hackdaworld.dyndns.org
5  *
6  */
7
8 #ifndef RANDOM_H
9 #define RANDOM_H
10
11 #include "nlsop.h"
12 #include <math.h>
13 #include <stdio.h>
14
15 /* function prototypes */
16 int rand_init(char *rf);
17 int rand_close(void);
18 u32 get_rand(u32 max);
19 u32 get_rand_lgp(u32 max,double a,double b);
20 u32 get_rand_reject(u32 max_x,u32 max_y,u32 *graph);
21
22 #ifdef MAC
23 #define BUFSIZE (256*1048576) /* 256 MByte */
24 #else
25 #define BUFSIZE (16*1048576) /* 16 MByte */
26 #endif
27 #define URAND_MAX 0xffffffff
28
29 #endif /* RANDOM_H */