added sampleNoReplace to Discrete