Implementation of randrange using secrets.
Project description
secretsrandrange
Implementation of randrange using secrets.
Installation
Install with pip
pip3 install -U secretsrandrange
Usage
secretsrandrange.randrange(
start:int,
stop=typing.Union[int, NoneType],
step:int=1
) -> int
Return a randomly selected element from range(start, stop, step).
This is equivalent to choice(range(start, stop, step)),
but doesn’t actually build a range object.
:param start: int: Start number.
:param stop: Stop number. (Default value = Optional[int])
:param step: int: Step (Default value = 1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
secretsrandrange-0.2.tar.gz
(1.7 kB
view hashes)