If the items are in an array, its really simple to select one randomly. For example:
animals = ["Dog", "Cat", "Fish", "Bird"];
int random = Math.floor(Math.random() * animals.length);
console.log(animals[random]); // Select a random index and get the item at that index