Quantum coins and quantum sampling