<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>N3551 Random Number Generation in C++11 特定の範囲の値がほしい場合、剰余を使用してはいけません。 // サイコロを振る int roll_a_biased_die( ) { static std::default_random_engine e{}; return 1 + e() % 6; // これはだめ } ここでは剰余を使用して、1 + (0から5)の値が等確率で出力されることを期待していますが、剰余を使用した場合、小さい値が出力される確率が高くなるため、等確率にはなりません。 なので、uniform_int_distributionのような、専用…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20130321%2F1363857599&quot; title=&quot; 乱数生成のアンチパターン - Faith and Brave - C++で遊ぼう&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>2013-03-21 18:19:59</published>
  <title> 乱数生成のアンチパターン</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/20130321/1363857599</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
