2 |
|
/* |
3 |
|
* random.h - header file for random(3) and urand() function. |
4 |
|
*/ |
5 |
+ |
#ifndef _RAD_RANDOM_H_ |
6 |
+ |
#define _RAD_RANDOM_H_ |
7 |
+ |
#ifdef __cplusplus |
8 |
+ |
extern "C" { |
9 |
+ |
#endif |
10 |
|
|
11 |
+ |
|
12 |
|
#include "copyright.h" |
13 |
|
|
14 |
|
#ifdef NORANDOM |
69 |
|
|
70 |
|
#endif |
71 |
|
|
66 |
– |
#ifdef NOPROTO |
67 |
– |
|
68 |
– |
extern int initurand(); |
69 |
– |
extern int ilhash(); |
70 |
– |
extern int urind(); |
71 |
– |
extern void multisamp(); |
72 |
– |
|
73 |
– |
#else |
72 |
|
/* defined in urand.c */ |
73 |
|
extern int initurand(int size); |
74 |
|
extern int ilhash(int *d, int n); |
77 |
|
/* defined in multisamp.c */ |
78 |
|
extern void multisamp(double t[], int n, double r); |
79 |
|
|
80 |
+ |
|
81 |
+ |
#ifdef __cplusplus |
82 |
+ |
} |
83 |
|
#endif |
84 |
+ |
#endif /* _RAD_RANDOM_H_ */ |
85 |
+ |
|