Creates a new RandomSampler with the provided probability.
Creates a new RandomSampler with the provided probability. If the probability is greater than 1D it will be adjusted to 1D and if it is lower than 0 it will be adjusted to 0.
Creates a new RandomSampler with the provided probability.
Creates a new RandomSampler with the provided probability. If the probability is greater than 1D it will be adjusted to 1D and if it is lower than 0 it will be adjusted to 0.