public static int CardToDoAgain(ActionContainer action) { var tempList = action.GetTempCardList(); if (tempList.Count == 0) { throw new BasicBlankException("Cannot get the cards to do again because there are no cards"); } return(tempList.GetRandomItem()); }