function fair_dice_simulation_test ( )

%*****************************************************************************80
%
%% FAIR_DICE_SIMULATION_TEST tests FAIR_DICE_SIMULATION.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    11 January 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../fair_dice_simulation' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'FAIR_DICE_SIMULATION_TEST:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test FAIR_DICE_SIMULATION.\n' );

  n = 1000;
  fair_dice_simulation ( n );
  filename = sprintf ( 'fair_dice_simulation_test_%d.png', n );
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'FAIR_DICE_SIMULATION_TEST:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../fair_dice_simulation' )

  return
end
