dpnp.random.RandomState.zipf

method

RandomState.zipf(a, size=None, *, usm_type='device')[source]

Draw samples from a Zipf distribution.

For full documentation refer to numpy.random.RandomState.zipf.

Limitations

The samples follow the Zipf distribution truncated to the largest int64, while NumPy's rejection test rounds to accepting every sample above 2**53, which makes its tail too heavy for a close to 1.