| 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 |
|
|
| 6 |
– |
#include "copyright.h" |
| 7 |
– |
|
| 11 |
|
#ifdef NORANDOM |
| 12 |
|
|
| 13 |
|
#undef random |
| 66 |
|
|
| 67 |
|
#endif |
| 68 |
|
|
| 66 |
– |
#ifdef NOPROTO |
| 67 |
– |
|
| 68 |
– |
extern int initurand(); |
| 69 |
– |
extern int ilhash(); |
| 70 |
– |
extern int urind(); |
| 71 |
– |
extern void multisamp(); |
| 72 |
– |
|
| 73 |
– |
#else |
| 69 |
|
/* defined in urand.c */ |
| 70 |
|
extern int initurand(int size); |
| 71 |
|
extern int ilhash(int *d, int n); |
| 74 |
|
/* defined in multisamp.c */ |
| 75 |
|
extern void multisamp(double t[], int n, double r); |
| 76 |
|
|
| 77 |
+ |
|
| 78 |
+ |
#ifdef __cplusplus |
| 79 |
+ |
} |
| 80 |
|
#endif |
| 81 |
+ |
#endif /* _RAD_RANDOM_H_ */ |
| 82 |
+ |
|