qala-io / datagen

Java lib that generates random data (numbers, strings, dates) - mostly to facilitate Randomized Testing.
http://qala.io/blog/randomized-testing.html
Apache License 2.0
60 stars 5 forks source link

sample() could be not so obvious #7

Closed php-coder closed 7 years ago

php-coder commented 7 years ago

Why it's not named oneOf() or anyOf()?

ctapobep commented 7 years ago

Again because I didn't want to invent my own terminology. Sampling is a term that comes from statistics. As well as sampling with replacement (there is a method for it in Datagen too).