function normal01_multivariate_distance_histogram ( m, n )

%*****************************************************************************80
%
%% normal01_multivariate_distance_histogram histograms normal distances.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    07 February 2019
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer M, the spatial dimension.
%
%    Input, integer N, the number of samples to use.
%
  for i = 1 : n
    p = randn ( m, 1 );
    q = randn ( m, 1 );
    t(i) = norm ( p - q );
  end

  bins = 20;
  histogram ( t, bins, 'Normalization', 'pdf' );
  grid on
  xlabel ( '<-- Distance -->' )
  ylabel ( '<-- Frequency -->' )
  label = sprintf ( 'Distance between random %d-dimensional normal01 samples', m );
  title ( label )

  return
end
