Latin Hyper Cube sampeling

I dug this old thread up where the OP includes code that appears to use LHC sampling. Maybe that provides some directions?