Implements Sampler by sampling only certain value.
Generates a chain of samples.
the value to sample.