rvs
scipy.stats.sampling.DiscreteAliasUrn.
- DiscreteAliasUrn.rvs(size=None, random_state=None)
Sample from the distribution.
- Parameters:
- size : int or tuple, optional
The shape of samples. Default is
Nonein which case a scalar sample is returned.
Sample from the distribution.
The shape of samples. Default is None in which case a scalar
sample is returned.
numpy.random.Generator,
numpy.random.RandomState}, optional
A NumPy random number generator or seed for the underlying NumPy random
number generator used to generate the stream of uniform random numbers.
If random_state is None (or np.random), random_state provided during
initialization is used.
If random_state is an int, a new RandomState instance is used,
seeded with random_state.
If random_state is already a Generator or RandomState instance then
that instance is used.
A NumPy array of random variates.