integers#
- scikitplot.random.integers(self, low, high=None, size=None, dtype=np.int64, endpoint=False)#
Random integers in [low, high) or [low, high].
- Parameters:
- lowint
Lowest value (inclusive)
- highint, optional
Highest value (exclusive unless endpoint=True)
- sizeint or tuple, optional
Output shape
- dtypedtype, default=np.int64
Data type
- endpointbool, default=False
If True, sample from [low, high] instead of [low, high)
- Returns:
- int or ndarray
Random integers
Examples
>>> gen = KissGenerator(42) >>> gen.integers(0, 10, size=5) array([...])