<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kagasu</author_name>
  <author_url>https://blog.hatena.ne.jp/kagasu/</author_url>
  <blog_title>備忘録</blog_title>
  <blog_url>https://kagasu.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>Ⅰ. はじめに タイトルの通り「C#でランダムに抽出、ランダムに並び替えする方法」です。 Ⅱ. 環境 .NET 8以上 Ⅲ. サンプルプログラム var values = new uint[] { 1, 2, 3, 4 }; // ランダムに3個抽出する。重複有。 var randomValues = Random.Shared.GetItems(values, 3); Console.WriteLine(string.Join(&quot;, &quot;, randomValues)); // 配列をランダムに並び替える。 Random.Shared.Shuffle(values); Console.Writ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F2023%2F09%2F06%2F124129&quot; title=&quot;C#でランダムに抽出、ランダムに並び替えする方法 - 備忘録&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>2023-09-06 12:41:29</published>
  <title>C#でランダムに抽出、ランダムに並び替えする方法</title>
  <type>rich</type>
  <url>https://kagasu.hatenablog.com/entry/2023/09/06/124129</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
