How to randomize array items and then crop the array by required percent
<p>What is the best way to randomize items in an array and also remove random items to get to a required array length?</p>

<p>Let's say I have an array with 100 items.</p>

<p>First, I want to randomize it.</p>

<p>Then, I have three percent coefficients: 10%, 30%, 60%.</p>

<p>I want to remove items from the original array so the new array I get will be 60% of the original size (60 items), then 30%, then 10%.</p>
