Sampling from the uniform distribution


Is there an efficient classical algorithm that generates samples from the uniform distribution? Would such an algorithm exist for any distribution that has an analytic description?