function ziggurat_test05 ( sample_num )

%*****************************************************************************80
%
%% ziggurat_test05() times shr3().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 May 2008
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ziggurat_test05()\n' );
  fprintf ( 1, '  Measure the time it takes shr3() to generate\n' );
  fprintf ( 1, '  %d unsigned 32 bit integers.\n', sample_num );

  key = uint32 ( 123456789 );

  time1 = cputime;

  for sample = 1 : sample_num
    [ value, key ] = shr3 ( key );
  end

  time2 = cputime;

  fprintf ( 1, '\n' );
  fprintf ( 1, '  %f seconds.\n', time2 - time1 );

  return
end
