Metadata-Version: 2.1
Name: nazo-rand
Version: 0.0.2
Summary: A fast random number generator for python
Author: bymoye
Author-email: s3moye@gmail.com
License: Free for non-commercial use
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Cython
Classifier: Programming Language :: C++
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# rand_int

Inspired to write from [Pyewacket](https://github.com/BrokenShell/Pyewacket)

A fast random number generator for python

`rand_int.choice(seq: list|Tuple) -> Any`
example：

```python
from nazo_rand import choice
temp = [1,2,3,4,5,6]
choice(temp)
```

`rand_int.randbelow(a: int) -> int`
example:

```python
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:

```python
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:

```python
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
```
