Select a single item from an array at random with uniform weights.
An array of arbirary item
A single randomly selected item
const selected = SMath.selectRandom([10, 20, 30, 40]); // 30 Copy
const selected = SMath.selectRandom([10, 20, 30, 40]); // 30
Select a single item from an array at random with uniform weights.