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.2.tar.gz
(43.4 kB
view hashes)
Built Distributions
Close
Hashes for nazo_rand-0.0.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86810e095aaa30d50baa51b238ab556028335c2c6af8b8d3e08e6fcf5ddac7ec |
|
MD5 | a8ba127ee55021cd05d1850940035bf7 |
|
BLAKE2b-256 | 415ac942613c6ea61e32fe9552f20d5d73d075c9716709b2487434905a46d7b5 |
Close
Hashes for nazo_rand-0.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d7959e2b0a9ca70ca7455f76da180026bb4b73b90be2f2b4e5b166c578f1d72 |
|
MD5 | b5d88dee34384fc9d8bf6cf51f8c0b67 |
|
BLAKE2b-256 | 505e3ecc4a2b3f47b9969d07ac935f7eddb3ec78c433056d0cb7fad4c284ce1d |
Close
Hashes for nazo_rand-0.0.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 825068e4ec8288e0b726d0945bbbff6b2fd5138e3ff8c5e41ebf32fa40f0606b |
|
MD5 | 162ac4b94033691eb1cc91670b0b7bb1 |
|
BLAKE2b-256 | 972b2275060632b447598c8666b1786d76a926e120101ec2ab9868d5b8bcba75 |
Close
Hashes for nazo_rand-0.0.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78582f9f3ed0377908dff19de89d7482590a21a9abb1c7e66e8aeed6c4c7e62d |
|
MD5 | acbbeac2c09b0ecdc456cb7142decde3 |
|
BLAKE2b-256 | 54a8112a53ce620760eb61f85abecaf4c342dfb4ddca77fc4b56a7ddd9497909 |
Close
Hashes for nazo_rand-0.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0491801654b1f19023a6dc7068a3529a479e48d3d74942f24e8157ec8213da5b |
|
MD5 | c0dde5216b5b0248e58c6652072a80ab |
|
BLAKE2b-256 | d74e9aaada4172cb1df95ce63c687d8cb02c4b0e713e49537fbb33ec5b4d89fc |
Close
Hashes for nazo_rand-0.0.2-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cdc98f7d798595889a539d91194e1b8a824d8073a50178c4c328e43e82faef5 |
|
MD5 | 947c8598f30ec68dbdd2adbedab71bb2 |
|
BLAKE2b-256 | a846ab5bed11561af95cf8fa0e6341ff775df7a529e7f852dfa5901ac9c899b7 |
Close
Hashes for nazo_rand-0.0.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 616c3df3c3a77c8f1233faecb72101a466a3869edc32cff6f35ea5eb04c44450 |
|
MD5 | 3ef7accd59faae4d5fb9005d176efe98 |
|
BLAKE2b-256 | 60670b968bdbbca661230b1329c059603e2a55bfbd94e38879ca657b6431e359 |
Close
Hashes for nazo_rand-0.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eed37350c356ff2fafa8356c7f9bf6c368c21ba276e9e054763943879c57309 |
|
MD5 | 3abc1df02eb1974f682e1eaef3769e7c |
|
BLAKE2b-256 | 2cbe4113f58de76d53ca4e713191e771a56ff458cd76a4c79488533848309ae0 |
Close
Hashes for nazo_rand-0.0.2-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37a11996f30084034556823e3137511db812264895d34b746fb3166d1bbaf8f2 |
|
MD5 | 5bf07c6a5bf83fee9aab90699bef78c8 |
|
BLAKE2b-256 | f1a4971586490534a8399097c588669b562d19d5dbeb1596d209c7e7654ca6ba |
Close
Hashes for nazo_rand-0.0.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d291e6899288691216fffa583a8f52531baf5ca18babc8842cbabead7ba0eba |
|
MD5 | 87b2024090ef2217c7891937852f98dc |
|
BLAKE2b-256 | a54b5edff697abc4e736f37bfa85ee07da3f344d08a64661d078125a330ab9a4 |
Close
Hashes for nazo_rand-0.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a19283cc2fc69d9834252092a073db78c092e05cf000025fa7895d8cef7a4c6 |
|
MD5 | dc8a83da8a7ee9fc6e3a1dd70bb3dcb5 |
|
BLAKE2b-256 | 52ff03c7c5a7766f9daf29bb490d0c4cec97e0be7b1eac6f76a9bd1b78f45514 |
Close
Hashes for nazo_rand-0.0.2-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b65316524b540e70eb162f5cf3761543b26c382dbf8a06a8dbf93abd0de021ea |
|
MD5 | 7674d7d85db717c3c9cf311c67e813fc |
|
BLAKE2b-256 | 2e947da07a66ac4d5be2bbb8b2a1783550d58c6791d1758348697b92f6c44348 |