![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
GaussRand の使用例
Revision 0:315e6f13b961, committed 2018-06-25
- Comitter:
- MikamiUitOpen
- Date:
- Mon Jun 25 12:56:23 2018 +0000
- Commit message:
- 1
Changed in this revision
diff -r 000000000000 -r 315e6f13b961 Random.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Random.lib Mon Jun 25 12:56:23 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/MikamiUitOpen/code/Random/#9a89ea736473
diff -r 000000000000 -r 315e6f13b961 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jun 25 12:56:23 2018 +0000 @@ -0,0 +1,14 @@ + +#include "mbed.h" +#include "GaussRand.hpp" +using namespace Mikami; + +int main() +{ + GaussRand rnd(1.0f, 0); + + for (int n=0; n<10; n++) + printf("%2d: %8.4f\r\n", n, rnd.Next()); + + while (true) {} +}
diff -r 000000000000 -r 315e6f13b961 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Jun 25 12:56:23 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/5aab5a7997ee \ No newline at end of file