Changed the way it grabs random items from the array to help with backwards compatibility in Ruby