<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toburau</author_name>
  <author_url>https://blog.hatena.ne.jp/toburau/</author_url>
  <blog_title>ゲームが作れるようになるまでがんばる日記</blog_title>
  <blog_url>https://toburau.hatenablog.jp/</blog_url>
  <categories>
    <anon>ウェブ</anon>
  </categories>
  <description>http://cri-ch.tv/iwai/52288.html 乱数の使い方が駄目な例が紹介されている。 じゃあ、どうコードを書くのが正しいのかといわれると、なかなか良い方法を思いつかない。 思いついたのは、配列に順番に値を入れて、配列の中身を適当な回数入れ替えるというもの。 #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int main() { int box[100]; // 0-99を順番にセット for(int i=0; i&lt;100; i++) { box[i] = i; } for(int i=0; i&lt;100; i++) { // ランダムで2か所…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20080711%2F1215802249&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>2008-07-11 03:50:49</published>
  <title>乱数のダメな使い方</title>
  <type>rich</type>
  <url>https://toburau.hatenablog.jp/entry/20080711/1215802249</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
