This is documentation for an old release of NumPy (version 1.3.). Read this page in the documentation of the latest stable release (version > 1.17).

numpy.random.randint

numpy.random.randint(low, high=None, size=None)

Return random integers x such that low <= x < high.

If high is None, then 0 <= x < low.

Previous topic

numpy.random.randn

Next topic

numpy.random.random_integers

This Page

Quick search