How to write a test against randomly selected values from a collection? I have a function which selects a random value from an array to be returned: