OptionalprobWeights for the candidates (need not sum to 1). Default: equal probabilities.
OptionalreplaceSample with replacement. Default false.
OptionalsizeNumber of items to draw (truncated, as R; below 2^31 with prob). Default: the number of candidates (a random
permutation).
Options for sample and sampleInt.