{"blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","title":" \u4e71\u6570\u751f\u6210\u306e\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3","image_url":null,"author_url":"https://blog.hatena.ne.jp/faith_and_brave/","blog_url":"https://faithandbrave.hateblo.jp/","provider_name":"Hatena Blog","author_name":"faith_and_brave","categories":["C++"],"type":"rich","description":"N3551 Random Number Generation in C++11 \u7279\u5b9a\u306e\u7bc4\u56f2\u306e\u5024\u304c\u307b\u3057\u3044\u5834\u5408\u3001\u5270\u4f59\u3092\u4f7f\u7528\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002 // \u30b5\u30a4\u30b3\u30ed\u3092\u632f\u308b int roll_a_biased_die( ) { static std::default_random_engine e{}; return 1 + e() % 6; // \u3053\u308c\u306f\u3060\u3081 } \u3053\u3053\u3067\u306f\u5270\u4f59\u3092\u4f7f\u7528\u3057\u3066\u30011 + (0\u304b\u30895)\u306e\u5024\u304c\u7b49\u78ba\u7387\u3067\u51fa\u529b\u3055\u308c\u308b\u3053\u3068\u3092\u671f\u5f85\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u5270\u4f59\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u3001\u5c0f\u3055\u3044\u5024\u304c\u51fa\u529b\u3055\u308c\u308b\u78ba\u7387\u304c\u9ad8\u304f\u306a\u308b\u305f\u3081\u3001\u7b49\u78ba\u7387\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002 \u306a\u306e\u3067\u3001uniform_int_distribution\u306e\u3088\u3046\u306a\u3001\u5c02\u7528\u2026","published":"2013-03-21 18:19:59","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20130321%2F1363857599\" title=\" \u4e71\u6570\u751f\u6210\u306e\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3 - Faith and Brave - C++\u3067\u904a\u307c\u3046\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","url":"https://faithandbrave.hateblo.jp/entry/20130321/1363857599","provider_url":"https://hatena.blog","width":"100%","height":"190"}