changeset 2610 | 52cf8f8f25b4 |
parent 2596 | 9c00e972cdfd |
2:e03471951532 | 3:2d24ddbfc05e |
---|---|
22 ///\file \brief Test cases for random.h |
22 ///\file \brief Test cases for random.h |
23 /// |
23 /// |
24 ///\todo To be extended |
24 ///\todo To be extended |
25 /// |
25 /// |
26 |
26 |
27 int seed_array[] = {1, 2}; |
|
28 |
|
27 int main() |
29 int main() |
28 { |
30 { |
29 double a=rnd(); |
31 double a=rnd(); |
30 check(a<1.0&&a>0.0,"This should be in [0,1)"); |
32 check(a<1.0&&a>0.0,"This should be in [0,1)"); |
31 a=rnd.gauss(); |
33 a=rnd.gauss(); |