gen.x.unif function

A helper function to generate n samples of a d-dimensional uniform vector.