function craps_stats_test ( )

%*****************************************************************************80
%
%% craps_stats_test() tests craps_stats().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 July 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'craps_stats_test():\n' );
  fprintf ( 1, '  craps_stats() reports statistics for N instances\n' );
  fprintf ( 1, '  of a craps game.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '       N    Win/N   Rolls/N\n' );
  fprintf ( 1, '\n' );

  for n = [ 1, 10, 100, 1000, 10000 ]
    [ win_total, roll_total ] = craps_stats ( n );
    fprintf ( 1, '   %6d  %8.4f  %8.4f\n', ...
      n, win_total / n, roll_total / n );
  end

  return
end

