numpy.random.mtrand.RandomState.tomaxint

RandomState.tomaxint(size=None)

Uniformly sample discrete random integers x such that 0 <= x <= sys.maxint.

Parameters:

size : tuple of ints, int, optional

Shape of output. If the given size is, for example, (m,n,k), m*n*k samples are generated. If no shape is specified, a single sample is returned.

Returns:

out : ndarray

Drawn samples, with shape size.

See also

randint
Uniform sampling over a given half-open interval of integers.
random_integers
Uniform sampling over a given closed interval of integers.

Previous topic

numpy.random.mtrand.RandomState.standard_t

Next topic

numpy.random.mtrand.RandomState.triangular

This Page