<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>t-hom</author_name>
  <author_url>https://blog.hatena.ne.jp/t-hom/</author_url>
  <blog_title>t-hom’s diary</blog_title>
  <blog_url>https://thom.hateblo.jp/</blog_url>
  <categories>
    <anon>VBA</anon>
  </categories>
  <description>今回はn個の数値をランダムに並び替えるアルゴリズム。 元ネタはこちらの記事。 chemiphys.hateblo.jp上記はRnd関数のランダム性を利用したアルゴリズムで、出てきたSingle値の順位を付けることで結果的にその順位が重複のないランダムな数列になるというもの。たとえば1～5をランダムに並び替えたいとする。このようにRndを5回評価し、大きい順に順位をつける。 回数 Rnd結果 順位 1回目 0.4013743 2位 2回目 0.27828 3位 3回目 0.1604415 5位 4回目 0.1628216 4位 5回目 0.6465871 1位 この順位がそのまま2, 3, 5,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthom.hateblo.jp%2Fentry%2F2017%2F03%2F19%2F182101&quot; title=&quot;VBA Collectionを使って数値をランダムに並び替える - t-hom’s diary&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.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-03-19 18:21:01</published>
  <title>VBA Collectionを使って数値をランダムに並び替える</title>
  <type>rich</type>
  <url>https://thom.hateblo.jp/entry/2017/03/19/182101</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
