<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fspace</author_name>
  <author_url>https://blog.hatena.ne.jp/fspace/</author_url>
  <blog_title>エフアンダーバー</blog_title>
  <blog_url>https://www.f-sp.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>以前書いた疑似乱数生成コードの修正作業をしたので、その際に調べたことや考えたことのメモ。 基本的に自分用なので雑。 動機と方針 System.Randomのアルゴリズムは古めで偏りがある。 Knuthの減算法。 再現性の問題があるので今後も変わることはなさそう。 UnityEngine.Randomなどゲームエンジンや外部ライブラリに依存したくない。 System.Randomは継承しない。 .NET的には推奨らしいけど無駄なフィールドのメモリが必要なため。 0~1の範囲の乱数 1を含めるか否か 各APIの仕様は、 System.Randomは1を含めない。 JavaScriptのMath.r…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.f-sp.com%2Fentry%2F2017%2F09%2F22%2F183907&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-09-22 18:39:07</published>
  <title>乱数生成の備忘録</title>
  <type>rich</type>
  <url>https://www.f-sp.com/entry/2017/09/22/183907</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
