| Revision: | 1.2 |
| Committed: | Mon Jul 14 22:24:00 2003 UTC (22 years, 3 months ago) by schorsch |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | rad3R6P1, rad3R6 |
| Changes since 1.1: | +14 -2 lines |
| Log Message: | Instrumented headers against multiple inclusion and for use from C++. Moved includes in headers out of "C" scope. |
| # | Content |
|---|---|
| 1 | /* RCSid: $Id: random.h,v 1.1 2003/02/22 02:07:26 greg Exp $ */ |
| 2 | /* |
| 3 | * random.h - header file for random(3) function. |
| 4 | * |
| 5 | * 10/1/85 |
| 6 | */ |
| 7 | #ifndef _RAD_META_RANDOM_H_ |
| 8 | #define _RAD_META_RANDOM_H_ |
| 9 | |
| 10 | #include <stdlib.h> |
| 11 | |
| 12 | #ifdef __cplusplus |
| 13 | extern "C" { |
| 14 | #endif |
| 15 | |
| 16 | #define frandom() (random()/2147483648.0) |
| 17 | |
| 18 | #ifdef __cplusplus |
| 19 | } |
| 20 | #endif |
| 21 | #endif /* _RAD_META_RANDOM_H_ */ |
| 22 |