{"url":"https://qnighy.hatenablog.com/entry/2015/07/01/235907","author_url":"https://blog.hatena.ne.jp/qnighy/","author_name":"qnighy","title":"C++11 random \u899a\u3048\u66f8\u304d","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqnighy.hatenablog.com%2Fentry%2F2015%2F07%2F01%2F235907\" title=\"C++11 random \u899a\u3048\u66f8\u304d - \u7c21\u6f54\u306aQ\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":[],"blog_title":"\u7c21\u6f54\u306aQ","provider_url":"https://hatena.blog","description":"C++11\u4ee5\u964d\u3067\u306f<random>\u30d8\u30c3\u30c0\u3067\u826f\u8cea\u306a\u64ec\u4f3c\u4e71\u6570\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 #include <random> \u5916\u90e8\u304b\u3089\u306e\u4e71\u6570 \u5916\u90e8\u304b\u3089\u4e71\u6570\u3092\u5f97\u308b\u306b\u306frandom_device\u3092\u4f7f\u3046\u3002 #include <random> #include <iostream> int main() { std::random_device rand_dev; std::cout << rand_dev() << std::endl; std::cout << rand_dev() << std::endl; return 0; } \u4e0a\u306e\u3088\u3046\u306b\u3001\u5916\u90e8\u304b\u3089\u306e\u4e71\u6570\u6e90\u306f\u95a2\u6570\u3068\u3057\u3066\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u4e71\u6570\u3092\u751f\u6210\u3059\u308b\u3002\u3053\u306e\u30d7\u2026","published":"2015-07-01 23:59:07","provider_name":"Hatena Blog","version":"1.0","type":"rich","image_url":null,"width":"100%","blog_url":"https://qnighy.hatenablog.com/","height":"190"}