function [next_cardnum, next_suit] = ProbComb5CardGameNextCard(cardnum, suit)
% [next_cardnum, next_suit] = NextCard(cardnum, suit)
% Find next card in 5-card game (5 #'s, 4 suits)
% If past end of deck, set card # and suit to 0's.

  % If input is [0,0] return [0,0].
  if cardnum == 0 & suit == 0
    next_cardnum = 0;
    next_suit = 0;
  else
    next_cardnum = cardnum;
    next_suit = suit + 1;

    if next_suit == 5
      % Done with suits, reset suit and increment card number.
      next_suit = 1;
      next_cardnum = next_cardnum + 1;
      if next_cardnum == 6
        % Past end of card deck.  Set card # and suit to indicate error.
        next_cardnum = 0;
        next_suit = 0;
      end  
    end
end

