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 details)
File details
Details for the file secretsrandrange-0.2.tar.gz
.
File metadata
- Download URL: secretsrandrange-0.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0111e09257321a3f2cc8c781f758112a041268d3014b541c9a0f88f60f2a770 |
|
MD5 | edc5ac7706ef1ce157efdc19fa61875e |
|
BLAKE2b-256 | 7b26dbfaadde0aa6aebb87ead3e385226aaeca0515d1216f4ab724b1d521c1ee |