function t = poisson_next_event ( lambda )

%*****************************************************************************80
%
%% POISSON_NEXT_EVENT simulates the occurrence of a single Poisson event.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    24 January 2019
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, real LAMBDA, the average number of events per unit time.
%
%    Output, real T, the time at which the Poisson event was observed.
%
  t = - log ( rand ( 1, 1 ) ) / lambda;

  return
end
