Fortran RNG for Python3
Project description
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
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
- Arrays
FortanRNG.array.random_below(limit, width, height) -> np.array
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.5.0.tar.gz
(11.6 kB
view hashes)
Built Distribution
Close
Hashes for FortranRNG-1.5.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 469571359d9e3116f166a5d1c09007b58c1612cda4cc19711130bf2954a156a6 |
|
MD5 | 0ae832cdde3335746e8fb62ebabff791 |
|
BLAKE2b-256 | eeb9037062a5931b5e843dca801a1711bb0f7b662fc7e7b16e2405e03fb31664 |