andomness.</p>

<p>You use this method to randomize the elements of a sequence when you
are using a custom random number generator. For example, you can shuffle
the numbers between <code>0</code> and <code>9</code> by calling the <code>shuffled(using:)</code> method
on that range:</p>

<pre><code class="language-swift">let numbers = 0...9
let shuffledNumbers = numbers.shuffled(using: &amp;myGenerator)
// shuffledNumbers == [8, 9, 4, 3, 2, 6, 7, 0, 5, 1]</code></pre>

<p><strong><code>generator</code>:</stro