function polyomino_random_test ( )

%*****************************************************************************80
%
%% polyomino_random_test tests polyomino_random.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 January 2020
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polyomino_random_test:\n' );
  fprintf ( 1, '  polyomino_random generates a random polyomino.\n' );

  for i = 1 : 5

    ns = randi( [ 3, 20 ] );
    ps = polyomino_random ( ns );
    p = polyomino_sparse_to_full ( ps );
    [ m, n ] = size ( p );
    label = sprintf ( ...
      '  Random polyomino of %d squares on %d by %d grid', ns, m, n );
    polyomino_print ( m, n, p, label );

  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polyomino_random_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  return
end

