<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shawshank99</author_name>
  <author_url>https://blog.hatena.ne.jp/shawshank99/</author_url>
  <blog_title>にょきにょきブログ</blog_title>
  <blog_url>https://aoking.hatenablog.jp/</blog_url>
  <categories>
    <anon>C言語</anon>
  </categories>
  <description>乱数に触れる機会があったから調べてみた。C言語の rand 関数で、種をx軸、その種を元に得た乱数の先頭10個をプロット。なんだこれは・・・。全く一様に分布していないことが一目でわかる。線形合同法ってこんなに危険だったのか。 ちなみに、先頭100個を捨てろという噂のとおり101個目からの10個を取得してプロットするとこうなる。 まだまだ規則性が出てるので、今度は先頭1000個捨てる。 おお・・・？最初よりはだいぶ一様に分布するようになった。まだまだ規則性あるけど。 ということで実験結果。 rand 関数使うときは規則性が出ることを覚悟で使用する。 さらに良質の乱数が欲しい時は線形合同法みたいな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faoking.hatenablog.jp%2Fentry%2F20100309%2F1268091850&quot; title=&quot;線形合同法の危険性 - にょきにょきブログ&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>http://cdn-ak.f.st-hatena.com/images/fotolife/s/shawshank99/20100304/20100304083909.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-03-09 08:44:10</published>
  <title>線形合同法の危険性</title>
  <type>rich</type>
  <url>https://aoking.hatenablog.jp/entry/20100309/1268091850</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
