encapsulated ability to pick a random element