Replaced Random.randomIndex with Random.fromArray

Returns a random array element