Uniform Random Generation and Dominance Testing for CP-Nets