randomgen.generator.ExtendedGenerator.uintegers

ExtendedGenerator.uintegers(size=None, bits=64)

Return random unsigned integers

Parameters:
size=None

Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. Default is None, in which case a single value is returned.

bits=64

Size of the unsigned integer to return, either 32 bit or 64 bit.

Returns:

out – Drawn samples.

Return type:

int or numpy.ndarray

Notes

This method effectively exposes access to the raw underlying pseudo-random number generator since these all produce unsigned integers. In practice these are most useful for generating other random numbers. These should not be used to produce bounded random numbers by simple truncation.