2014-06-06 乱数 rand() は初期化が必要なんだって C++ 初期化しないと、毎回おんなじ結果がかえってくるんですねー //初期化 srand((unsigned int)time(NULL)); //0〜5までの乱数 rand()%6