function d = fly_simulation ( n )

%*****************************************************************************80
%
%% fly_simulation() estimates the average distance of a fly from the origin.
%
%  Discussion:
%
%    A fly lands at a random point on a dish of radius 1.
%    On average, how far is the fly from the center of the dish?
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    22 July 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer n: the number of times the experiment is carried out.
%
%  Output:
%
%    real d[n]: the observed distances.
%
  r1 = sqrt ( rand ( n, 1 ) );
% t1 = 2.0 * pi * rand ( n, 1 );

  d = r1;

  return
end

