<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takuya_1st</author_name>
  <author_url>https://blog.hatena.ne.jp/takuya_1st/</author_url>
  <blog_title>それマグで！</blog_title>
  <blog_url>https://takuya-1st.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>乱数は実行する度に違う結果を返しますが、固定することができます。 １時間に一度変わるような表示を考えた時に１時間キャッシュしておくのも有りなんですが。簡単なものであればプログラム側ランダムで済ませてしまい、全体をプロキシキャッシュしたほうが楽ちんですね。 乱数の結果を一定期間固定する シードを固定します。 シードを１０分間固定すれば同じ値が変えてっ来ます。 &lt;?php ini_set('date.timezone',&quot;Asia/Tokyo&quot;); $date_str = date('Y-m-d H:00:00');# 一時間毎にシードがに変わる。 $time = strtotime($date_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2013%2F08%2F02%2F053251&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>2013-08-02 05:32:51</published>
  <title>数分おきに一度変わる乱数がほしい</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2013/08/02/053251</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
