function english_letter_cdf_test ( )

%*****************************************************************************80
%
%% ENGLISH_LETTER_CDF_TEST tests ENGLISH_LETTER_CDF, ENGLISH_LETTER_CDF_INV, ENGLISH_LETTER_PDF;
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    06 March 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ENGLISH_LETTER_CDF_TEST\n' );
  fprintf ( 1, '  ENGLISH_LETTER_CDF evaluates the English Letter CDF;\n' );
  fprintf ( 1, '  ENGLISH_LETTER_CDF_INV inverts the English Letter CDF.\n' );
  fprintf ( 1, '  ENGLISH_LETTER_PDF evaluates the English Letter PDF;\n' );

  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, '   C              PDF             CDF    CDF_INV\n' );
  fprintf ( 1, '\n' );

  for i = 1 : 10

    [ c, seed ] = english_letter_sample ( seed );

    pdf = english_letter_pdf ( c );

    cdf = english_letter_cdf ( c );

    c2 = english_letter_cdf_inv ( cdf );

    fprintf ( 1, '  ''%c''  %14f  %14f        ''%c''\n', c, pdf, cdf, c2 );

  end

  return
end
