GaussRand の使用例

Dependencies:   Random mbed

main.cpp

Committer:
MikamiUitOpen
Date:
2018-06-25
Revision:
0:315e6f13b961

File content as of revision 0:315e6f13b961:


#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) {}
}