function r8vec_01_to_ab_test ( )

%*****************************************************************************80
%
%% R8VEC_01_TO_AB_TEST tests R8VEC_01_TO_AB.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 April 2009
%
%  Author:
%
%    John Burkardt
%

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_01_TO_AB\n' );
  fprintf ( 1, '  R8VEC_01_TO_AB shifts and scales an R8VEC from\n' );
  fprintf ( 1, '  [0,1] to [A,B]\n' );

  n = 10;
  seed = 123456789;
  [ r, seed ] = r8vec_uniform_01 ( n, seed );
  r8vec_print ( n, r, '  Random R8VEC in [0,1]:' );

  a = 10.0;
  b = 20.0;
  s = r8vec_01_to_ab ( n, r, a, b );
  r8vec_print ( n, s, '  R8VEC remapped to [10,20]:' );
 
  return
end
