<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryamada</author_name>
  <author_url>https://blog.hatena.ne.jp/ryamada/</author_url>
  <blog_title>ryamadaのコンピュータ・数学メモ</blog_title>
  <blog_url>https://ryamada.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Eclipse</anon>
    <anon>乱数</anon>
  </categories>
  <description>Math.rondom()をソースのあちらこちらで使って書き散らしたプログラムがあるとする。再現性のあるものにするためには、seedを与えて、そのseedから開始される擬似乱数列をプログラム全体で使いまわす必要がある。Eclipseでプロジェクトを作っているのなら、こんな感じで乗り換えられる。Eclipseの多彩な機能(多彩過ぎて何ができるのかを把握するのが難しい)をもってすれば、もっと簡単にできるのかもしれないが・・・まず、Math.random()を書き散らしたプログラムがpackage &quot;pac1&quot;にあるとする。Main()が&quot;ClMain&quot;にある。&quot;pac1&quot;には、複数のクラスがあり、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada.hatenadiary.jp%2Fentry%2F20060306%2F1141644739&quot; title=&quot;擬似乱数列の乗り換え - ryamadaのコンピュータ・数学メモ&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>2006-03-06 20:32:19</published>
  <title>擬似乱数列の乗り換え</title>
  <type>rich</type>
  <url>https://ryamada.hatenadiary.jp/entry/20060306/1141644739</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
