blob: f1a3e3e17249fc891d6c1312cf2208f95fde60a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <stdlib.h>
#include "nonstd/lib.h"
#include "_rand.h"
/** get a pseudo-random number **/
int rand(void)
{
return _rand(*(unsigned*)__libc(RAND));
}
/***
computes a pseudo-random number in the range [0,CONSTANT(RAND_MAX)].
***/
/*
RETURN_SUCCESS(a pseudo-random integer)
STDC(1)
*/
|