Local math class.
Dependents: DISCO-F746NG_test001
Diff: Rand.hpp
- Revision:
- 0:d75b71489993
diff -r 000000000000 -r d75b71489993 Rand.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Rand.hpp Fri Jun 24 01:20:32 2016 +0000 @@ -0,0 +1,29 @@ +// +// 2016/04/27, Copyright (c) 2016 Takashi Inoue +// Button OverLapping Class Header +// ver 0.9 rev 0.1 2016/4/27 +//----------------------------------------------------------- + +#ifndef RAND_HPP +#define RAND_HPP + +#include "mbed.h" +#include <string> + +namespace TakaIno +{ +class Rand +{ + +public: + Rand(); + + unsigned long GetRand(void); + unsigned long GetRand(unsigned long max); + +protected: + static unsigned long x,y,z,w; +}; +} +#endif //RAND_HPP +