function x = normal_vector ( n, mu, sigma )

%*****************************************************************************80
%
%% normal_vector() samples the normal probability distribution.
%
%  Discussion:
%
%    The normal probability distribution function (PDF) has
%    a user-specified mean and standard deviation.
%
%    This routine can generate a vector of values on one call.  It
%    has the feature that it should provide the same results
%    in the same order no matter how we break up the task.
%
%    The Box-Muller method is used.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    26 August 2013
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of values desired.
%
%    real MU, the mean value.
%
%    real SIGMA, the standard deviation.
%    SIGMA nonzero.
%
%  Output:
%
%    real X(N), N samples of the normal PDF.
%
  x = mu + sigma * randn ( 1, n );

  return
end
