getRandomElement

Function that will return a random element from the iterable.