OSDN Git Service

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