2010-11-11から1日間の記事一覧
良質な乱数でなく、ゲームとかの演出その他程度に手軽に使う用の乱数生成用クラス #include <iostream> using namespace std; class RandomGenerator{ static const long int A = 22695477; static const long int C = 2531011; private: long int x; public: // 初期</iostream>…
良質な乱数でなく、ゲームとかの演出その他程度に手軽に使う用の乱数生成用クラス #include <iostream> using namespace std; class RandomGenerator{ static const long int A = 22695477; static const long int C = 2531011; private: long int x; public: // 初期</iostream>…