{"provider_url":"https://hatena.blog","blog_title":"Python\u306e\u30e1\u30e2\u5e33","provider_name":"Hatena Blog","height":"190","image_url":"https://www16.a8.net/0.gif?a8mat=2TN3W8+F3KS36+3U0W+5YRHE","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fspcx8.hatenablog.com%2Fentry%2F2017%2F06%2F28%2F124649\" title=\"\u914d\u5217\u304b\u3089\u8981\u7d20\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u62bd\u51fa\u3059\u308b\u305f\u3081\u306e\u300c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u300d\u3092\u4f5c\u308b - Python\u306e\u30e1\u30e2\u5e33\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/spcx8/","author_name":"spcx8","version":"1.0","categories":["Python","\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0","\u6a5f\u68b0\u5b66\u7fd2"],"title":"\u914d\u5217\u304b\u3089\u8981\u7d20\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u62bd\u51fa\u3059\u308b\u305f\u3081\u306e\u300c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u300d\u3092\u4f5c\u308b","published":"2017-06-28 12:46:49","url":"https://spcx8.hatenablog.com/entry/2017/06/28/124649","blog_url":"https://spcx8.hatenablog.com/","width":"100%","description":"\u914d\u5217\u304b\u3089\u8981\u7d20\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u62bd\u51fa\u3059\u308b\u306b\u306f\u3001(\u8981\u7d20\u306e\u62bd\u51fa\u306b\u4f7f\u3046)\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u3057\u3066\u304a\u304f\u3060\u3051\u3067\u3044\u3044\u3002 random_array = array[random_index] \u3053\u3053\u3067\u306frandom_index\u3082\u914d\u5217\u3002 \u4ee5\u4e0b\u306f\u95a2\u9023\u8a18\u4e8b\u3002 spcx8.hatenablog.com \u9806\u5e8f\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u3057\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9(\u914d\u5217)\u306e\u4f5c\u308a\u65b9\u306f\u8272\u3005\u3042\u308b\u3002\u6bd4\u8f03\u306e\u305f\u3081\u51e6\u7406\u6642\u9593\u3092\u6e2c\u5b9a\u3002\u3044\u305a\u308c\u30820~99,999\u306e\u6570\u5b57\u3092\u91cd\u8907\u306a\u3057\u3067\u30e9\u30f3\u30c0\u30e0\u306b\u4e26\u3079\u305f\u914d\u5217\u3092\u751f\u6210\u3057\u3066\u3044\u308b\u3002 import numpy as np idx = np.array(range(100000)) np.random.shuffle(idx) \u2192 \u6240\u8981\u6642\u9593\uff1a\u2026"}