FortranRNG-1.5.1
توضیحات
Fortran RNG for Python3
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | FortranRNG-1.5.1 |
| نام | FortranRNG |
| نسخه کتابخانه | 1.5.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Robert Sharp |
| ایمیل نویسنده | webmaster@sharpdesigndigital.com |
| آدرس صفحه اصلی | https://github.com/BrokenShell/FortranRNG-API/tree/main/FortranRNG |
| آدرس اینترنتی | https://pypi.org/project/FortranRNG/ |
| مجوز | Free for non-commercial use |
# FortranRNG
## Fortran RNG for Python3
Installation requires a modern Fortran compiler.
- macOS: Gfortran `brew install gcc`
- Debian Linux: Gfortran `apt install gcc gfortran`
- Amazon (Red Hat) Linux: Gfortran `yum groupinstall "Development Tools"`
- Windows: Cygwin `www.cygwin.org/cygwin`, good luck with that!
### PyPi Installation
```shell
python3 -m pip install FortranRNG
```
### Source Installation
```shell
python3 -m pip install ./FortranRNG
```
### FortranRNG Python Interface
- Boolean Generator
- `FortranRNG.percent_true(percent: float) -> bool(int)`
- Integer Generators
- `FortranRNG.random_below(limit: int) -> int`
- `FortranRNG.random_integer(low: int, high: int) -> int`
- `FortranRNG.random_range(start: int, stop: int, step: int) -> int`
- `FortranRNG.d(sides: int) -> int`
- `FortranRNG.dice(rolls: int, sides: int) -> int`
- `FortranRNG.plus_or_minus(amount: int) -> int`
- `FortranRNG.plus_or_minus_linear(amount: int) -> int`
- Float Generators
- `FortranRNG.canonical() -> float`
- `FortranRNG.random_float(low, high) -> float`
- `FortranRNG.triangular(low: float, high: float, mode: float) -> float`
- ZeroCool Index Generators
- `FortranRNG.random_index(limit) -> int`
- `FortranRNG.front_linear(limit) -> int`
- `FortranRNG.middle_linear(limit) -> int`
- `FortranRNG.back_linear(limit) -> int`
- `FortranRNG.quantum_linear(limit) -> int`
- Arrays
- `FortanRNG.array.random_below(limit, width, height) -> np.array`
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl FortranRNG-1.5.1:
pip install FortranRNG-1.5.1.whl
نصب پکیج tar.gz FortranRNG-1.5.1:
pip install FortranRNG-1.5.1.tar.gz