<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>.NET Core</anon>
    <anon>.NET Framework</anon>
    <anon>.NET</anon>
  </categories>
  <description>ある数列の内容を重複せずにランダムに取り出す方法を紹介したいと思います。 「同じ数字は出したくない」という場面で使用できるかと思います。 この実装を使用した場合の使用方法は以下の通りです。 public static void Main(string[] args) { // リストの0～3を重複せずランダムに取り出す foreach (int item in Shuffle(new List&lt;int&gt;() { 0, 1, 2, 3 })) // foreach (int item in Random(new int[] { 0, 1, 2, 3 }) // 配列の指定でもOK { Conso…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2019%2F05%2F11%2F153721&quot; title=&quot;【C#】リストの内容をランダムに重複せず取り出す - PG日誌&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>https://cdn-ak.f.st-hatena.com/images/fotolife/T/Takachan/20181019/20181019004124.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-05-11 15:37:21</published>
  <title>【C#】リストの内容をランダムに重複せず取り出す</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2019/05/11/153721</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
