This MATLAB function returns an n-by-p matrix, X, containing a latin hypercube sample of n values on each of p variables.
www.mathworks.com