http://beecoder.org/ja/javascript/guess-a-random-number-in-javascript
乱数を推測する, JavaScript