<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>qnighy</author_name>
  <author_url>https://blog.hatena.ne.jp/qnighy/</author_url>
  <blog_title>簡潔なQ</blog_title>
  <blog_url>https://qnighy.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>C++11以降では&lt;random&gt;ヘッダで良質な擬似乱数を得ることができる。 #include &lt;random&gt; 外部からの乱数 外部から乱数を得るにはrandom_deviceを使う。 #include &lt;random&gt; #include &lt;iostream&gt; int main() { std::random_device rand_dev; std::cout &lt;&lt; rand_dev() &lt;&lt; std::endl; std::cout &lt;&lt; rand_dev() &lt;&lt; std::endl; return 0; } 上のように、外部からの乱数源は関数として呼び出すことで乱数を生成する。このプ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqnighy.hatenablog.com%2Fentry%2F2015%2F07%2F01%2F235907&quot; title=&quot;C++11 random 覚え書き - 簡潔なQ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-07-01 23:59:07</published>
  <title>C++11 random 覚え書き</title>
  <type>rich</type>
  <url>https://qnighy.hatenablog.com/entry/2015/07/01/235907</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
