2013-11-29 乱数を使う処理のテスト 乱数を使う処理は結果が不定でテストしにくいことがあるので、テストの時だけ Math.random を上書きするやつを書いた。 random generator for tests