function x = cvtp_region_sampler ( m, n, a, b )

%*****************************************************************************80
%
%% CVTP_REGION_SAMPLER returns sample points in the physical region.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    01 August 2016
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer M, the spatial dimension.
%
%    Input, integer N, the number of points to generate.
%
%    Input, real A(M), B(M), the lower and upper limits.
%
%    Output, real X(M,N), the sample points.
%
  x = rand ( m, n );

  for i = 1 : m
    x(i,1:n) = a(i) + ( b(i) - a(i) ) * x(i,1:n);
  end

  return
end

