Sampling

Stores the next point from the generator in the given buffer. The
space available in the buffer must match the dimension of the generator.
The components of the sample will each lie in the range (0,1).