A fast random number generator for python
Project description
rand_int
Inspired to write from Pyewacket
A fast random number generator for python
rand_int.choice(seq: list|Tuple) -> Any
example:
from nazo_rand import choice
temp = [1,2,3,4,5,6]
choice(temp)
rand_int.randbelow(a: int) -> int
example:
from nazo_rand import randbelow
randbelow(10) # -> [0, 10)
randbelow(0) # -> [0, 0) => 0
randbelow(-10) # -> (-10, 0]
rand_int.randint(a: int , b: int) -> int
example:
from nazo_rand import randint
randint(1, 10) # -> [1, 10]
randint(10, 1) # -> [1, 10]
randint(10, 10) # -> [10, 10] => 10
rand_int.randrange(start: int , stop: int = 0 , step: int = 1 )
example:
from nazo_rand import randrange
randrange(10) # -> [0, 10) by whole numbers
randrange(1, 10) # -> [1, 10) by whole numbers
randrange(1, 10, 2) # -> [1, 10) by 2, odd numbers
randrange(-10) # -> [-10, 0) by 1
randrange(10, 1) # -> [1, 10) by 1
randrange(10, 0, 2) # -> [0, 10) by 2, even numbers
randrange(10, 10, 0) # -> [10, 10) => 10
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nazo_rand-0.0.3.tar.gz
(43.4 kB
view hashes)
Built Distributions
Close
Hashes for nazo_rand-0.0.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eea8c091ae9024dce5d4a1fe2719cc2059e0cc5df13301b679558f4bd1164667 |
|
MD5 | 97fa02a2156a8213e5d96481b67d8cc9 |
|
BLAKE2b-256 | ad2b73e7bd0f83ce8dbc306980399da9aefa3da44307aeea95ea4c31062b279c |
Close
Hashes for nazo_rand-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14b159978134a4ecd15490f6d38c33ac6ecc23b37d95054af2ec87730185e0bc |
|
MD5 | 7ac4973f130224ecbb8bc31fbb3b573a |
|
BLAKE2b-256 | 3de6cf6525efc178206ef666b55a6283c75d3efab51db3bc74bba3d7188a8afc |
Close
Hashes for nazo_rand-0.0.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29514c5765b6f33294d4701a7c3d6307890da56fc16870608cad4d26f66bc1c5 |
|
MD5 | 204bacf9de510de3a05f1e5a6f4954a5 |
|
BLAKE2b-256 | 79af1263dda72aa388abc6a3a9c5483dd47d8a7ae51fbb562e05f97c410fd8ea |
Close
Hashes for nazo_rand-0.0.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b05d4f854a8fc78f4bfd1c9f72075e77f146759f56a984f0aca2bb89925dbb5 |
|
MD5 | 66a01ffe60aa98867b74a24fede2a141 |
|
BLAKE2b-256 | ec0fa04bd8b3e7eb208dbf5a4612c5bb74f453478225f7f8789169cd1ef7bcf7 |
Close
Hashes for nazo_rand-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3778b2ce124ff6e4e7611bb4176b7468a48c5be86b769b47a30566003f82b269 |
|
MD5 | 6e11537fc6b66e13b1fb0add57f90253 |
|
BLAKE2b-256 | cc949634aa3b8b65eec2a1dbb8d952e1c65061e2d3c2841befa3de933674b866 |
Close
Hashes for nazo_rand-0.0.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48a14292f8ac1955f6698bf3f07b1e595b41e225322c13d252f4ac9d78422df8 |
|
MD5 | d96e81881c868dc05eeeff168aae7865 |
|
BLAKE2b-256 | b05979847a8c390b718cfda20a8d6085ae02d447b388e86f923e419d15fb3195 |
Close
Hashes for nazo_rand-0.0.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ba90abbeb3a5728519aad34ae65eeda2a2a7f64d14f96a83860aa8e13887899 |
|
MD5 | 122e1c2eead65a3364b0a20c722a4bc1 |
|
BLAKE2b-256 | 83272f146f739a5970431c568f037b8f9e82c0b5f11d374b80a0fb5af54670a9 |
Close
Hashes for nazo_rand-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e4139f60841c7c37ad3c43982220b481294fefee1b53cbb29ca38626bc94170 |
|
MD5 | e37174c9c737f287df24cb205a647be5 |
|
BLAKE2b-256 | 8d50df8b2d6962d0e446fcf83b79b1aba5ee6a691f6cb2cf72e77007dc301553 |
Close
Hashes for nazo_rand-0.0.3-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ffa94d600a6322b68686108c8b7069de8f46fede0bdb227c9c63ee1060b97d9 |
|
MD5 | 75e6b411df290d983d59bb1e7b4266f9 |
|
BLAKE2b-256 | be795fee7f17b46f63b18d3412f8ab8088c6752a29d8548b4f6192d9e5ed3429 |
Close
Hashes for nazo_rand-0.0.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1321a6f53fb12ef28a05ba71ebbfc35b27a853a6719a959691ff7d87ff81dfc6 |
|
MD5 | 223ddc5d2e171f8436aefc7c3107d3fd |
|
BLAKE2b-256 | 373c06cbd147d3c8691aa197fa66b16c586961cef90e866326014c31c696cb1d |
Close
Hashes for nazo_rand-0.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01a944300be74383725426319107c446a42cdb6bab701ee9e842bad426fa012e |
|
MD5 | abb8668bdc0f2c31f587e3222f3a5026 |
|
BLAKE2b-256 | 680b3d7459ea9500cd0ba71dd0c282830cae05ba7bd0d9b585418cd9e5de9327 |
Close
Hashes for nazo_rand-0.0.3-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 453c91f0a18efe0c9ec52b6a967f3eec11abfed0172a24203611f729cd797ad4 |
|
MD5 | b93b988f5fd6e9141f293a52f8d0e8a8 |
|
BLAKE2b-256 | 1ba3ac6cf835012f2c00b4ac336e636dba41a809a371213547b378ab9fb7c8aa |