org.apache.spark.util.random
:: DeveloperApi :: A sampler based on Bernoulli trials for partitioning a data sequence.
item type
lower bound of the acceptance range
upper bound of the acceptance range
whether to use the complement of the range specified, default to false
return a copy of the RandomSampler object
Return a sampler that is the complement of the range specified of the current sampler.
take a random sample
Set random seed.
:: DeveloperApi :: A sampler based on Bernoulli trials for partitioning a data sequence.
item type