<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kamogan</author_name>
  <author_url>https://blog.hatena.ne.jp/kamogan/</author_url>
  <blog_title>未熟者のプログラム記録</blog_title>
  <blog_url>https://mn.hateblo.jp/</blog_url>
  <categories>
    <anon>c/c++</anon>
  </categories>
  <description>ランダムはゲーム開発時に使う場面は多々あります。今回は標準関数のrand()とstd::random_shuffleを使い、トランプの並び替えを行うサンプルを書いていきます。 ランダムしたデータを自分でセットするより、std::random_shuffleでセットした方が より乱れている気がするのは私だけでしょうか？ #include &lt;stdlib.h&gt;#include &lt;algorithm&gt; static const int TRUMP_MAX = 52;struct TrumpData{ void Set(int id) { static char* BASE_CHAR = &quot;SDCH&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmn.hateblo.jp%2Fentry%2F2013%2F05%2F04%2F051444&quot; title=&quot;std::random_shuffleのランダム処理 - 未熟者のプログラム記録&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-05-04 05:14:44</published>
  <title>std::random_shuffleのランダム処理</title>
  <type>rich</type>
  <url>https://mn.hateblo.jp/entry/2013/05/04/051444</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
