function count_pose_random_test ( )

%*****************************************************************************80
%
%% count_pose_random_test() tests count_pose_random().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 July 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'count_pose_random_test():\n' );
  fprintf ( 1, '  count_pose_random() poses a random problem for\n' );
  fprintf ( 1, '  the game "The Count is Good".\n' );

  for i = 1 : 5

    [ blocks, goal ] = count_pose_random ( );

    fprintf ( 1, '\n' );
    fprintf ( 1, '  Problem #%d\n', i );
    fprintf ( 1, '\n' );
    fprintf ( 1, '    The goal number:\n' );
    fprintf ( 1, '\n' );
    fprintf ( 1, '      %d\n', goal );
    fprintf ( 1, '\n' );
    fprintf ( 1, '    The available numbers are\n' );
    fprintf ( 1, '\n' );
    fprintf ( 1, '    ' );
    for j = 1 : 6
      fprintf ( 1, '  %4d', blocks(j) );
    end
    fprintf ( 1, '\n' );

  end

  return
end
