OSDN Git Service

Modified: doc
[eos/optional.git] / doc / Objects / Random.html
1 <HR>
2 <A NAME="Information">
3 <H2>Information from source codes</H2>
4 </A>
5 <PRE>
6 </PRE>
7 <HR>
8 <A NAME="include">
9 <H2>Random.h</H2>
10 </A>
11 <PRE>
12 #ifndef RANDOM_H
13 #define RANDOM_H
14 #include <stdio.h>      
15 #include <stdlib.h>     
16 #include <math.h>       
17 #include <time.h>       
18
19 /* struct begin */
20 typedef double randomParaTypeReal;
21 /* struct end */
22
23 /* prototype begin */
24 #define random()  ((1.0/(RAND_MAX + 1.0))*rand())
25
26 extern randomParaTypeReal randomUniformGet(randomParaTypeReal min, randomParaTypeReal max, long mode);
27 extern randomParaTypeReal randomNormalGet(long mode);
28 extern void srandomByTime();
29
30 /* prototype end */
31
32 #endif /* RANDOM_H */
33 </PRE>