diff options
Diffstat (limited to 'src/stdlib/_rand.h')
| -rw-r--r-- | src/stdlib/_rand.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stdlib/_rand.h b/src/stdlib/_rand.h new file mode 100644 index 00000000..7f7102ef --- /dev/null +++ b/src/stdlib/_rand.h @@ -0,0 +1,4 @@ +#include <limits.h> + +#define _rand(_n) \ + (((_n) = (_n) * 1103515245 + 12345) ? (_n) / UINT_MAX % RAND_MAX : 0) |
