function r8_is_in_01_test ( )

%*****************************************************************************80
%
%% R8_IS_IN_01_TEST tests R8_IS_IN_01.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    19 April 2009
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_IS_IN_01_TEST\n' );
  fprintf ( 1, '  R8_IS_IN_01 is TRUE if an R8 is in [0,1]\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  R8      R8_IS_IN_01?:\n' );
  fprintf ( 1, '\n' );

  seed = 123456789;

  for i = 1 : 10
    [ r, seed ] = r8_uniform_ab ( -0.1, 1.2, seed );
    fprintf ( 1, '  %8.4f  %d\n', r, r8_is_in_01 ( r ) );
  end

  return
end
