function normal ( )

%*****************************************************************************80
%
%% NORMAL displays a histogram of 100,000 normal random numbers.
%
%  Discussion:
%
%    Displaying a histogram of 100,000 normal random numbers illustrates
%    how they tend to be distributed.
%
%  Modified:
%
%    29 January 2018
%
%  Author:
%
%    Paul Nahin
%
%  Reference:
%
%    Paul Nahin,
%    Dueling Idiots and Other Probability Puzzlers,
%    Princeton, 2012,
%    ISBN: 978-0691155005.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'NORMAL:\n' );
  fprintf ( 1, '  Displaying a histogram of 100,000 normal random numbers illustrates\n' );
  fprintf ( 1, '  how they tend to be distributed.\n' );

  y = randn ( 100000, 1 );
%
%  Graphics.
%
  clf
  hist ( y, 100 )
  grid on
  title ( 'Histogram of MATLAB 5.2 Normal Random Number Generator' )
  xlabel('100 bins, 100,000 numbers')
  ylabel('number of numbers in each bin')
  print ( '-dpng', 'normal.png' );

  return
end
