Fortran RNG for Python3
Project description
FortranRNG
Fortran RNG for Python3
Installation requires a modern Fortran compiler.
- Gfortran (macOS
brew install gcc
) - Gfortran (Debian Linux
apt install gcc gfortran
) - Gfortran (Amazon Linux
yum groupinstall "Development Tools"
) - Cygwin (Windows
www.cygwin.org/cygwin
, good luck with that!)
PyPi Installation
python3 -m pip install FortranRNG
Source Installation
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
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
FortranRNG-1.1.4.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for FortranRNG-1.1.4-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 321a22bef5c40c800ad30f6e476942bd37000ebe8031b202d5d3b9252f175119 |
|
MD5 | 55cb8565edce2a6d3b8573f58a230700 |
|
BLAKE2b-256 | 19873a9aa0ac7be479d65a6748f4167c4e29f8d755165a2bf7a4ff12cd24a5e7 |