function x = simplex_general_sample ( m, n, t )

%*****************************************************************************80
%
%% simplex_general_sample() samples a general simplex in M dimensions.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    02 March 2017
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Reuven Rubinstein,
%    Monte Carlo Optimization, Simulation, and Sensitivity 
%    of Queueing Networks,
%    Krieger, 1992,
%    ISBN: 0894647644,
%    LC: QA298.R79.
%
%  Input:
%
%    integer M, the spatial dimension.
%
%    integer N, the number of points.
%
%    real T(M,M+1), the simplex vertices.
%
%  Output:
%
%    real X(M,N), the points.
%
  x1 = simplex_unit_sample ( m, n );

  x = simplex_unit_to_general ( m, n, t, x1 );

  return
end
