public/js/game.js
//this returns random number within the length of the given list
this returns random number within the length of the given list
this returns random number within the length of the given list
function picRandomItem(list, length){
  let randomNum = Math.floor(Math.random() * length)
  let breed = list[randomNum];
  return breed;
}
function picRandomItem ( list , length ) { let randomNum = Math . floor ( Math . random ( ) * length ) let breed = list [ randomNum ] ; return breed ; }
this returns random number within the length of the given list
this returns random number within the length of the given list