function deck = full_deck_try ( )

%*****************************************************************************80
%
%% full_deck_try() returns all the cards drawn for a full deck problem.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 May 2022
%
%  Author:
%
%    John Burkardt
%
%  Output:
%
%    integer deck(52): the number of times each card was drawn.
%
  deck = zeros ( 52, 1 );

  while ( true )
    card = randi ( [ 1, 52 ], 1, 1 );
    deck(card) = deck(card) + 1;
    if ( all ( 0 < deck ) )
      break
    end
  end

  return
end

