GaussRand の使用例

Dependencies:   Random mbed

Files at this revision

API Documentation at this revision

Comitter:
MikamiUitOpen
Date:
Mon Jun 25 12:56:23 2018 +0000
Commit message:
1

Changed in this revision

Random.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /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
--- /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) {}
+}
--- /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