Skip to main content

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

Metadata

Release files for FortranRNG 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FortranRNG 1.5.1
File Size Uploaded
FortranRNG-1.5.1.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FortranRNG 1.5.1
File Interpreter ABI Platform
FortranRNG-1.5.1-cp310-cp310-macosx_10_9_universal2.whl CPython 3.10 CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) Details

Total release size: 39.6 kB

Release files / FortranRNG-1.5.1.tar.gz

Download URL FortranRNG-1.5.1.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
faf28147893bf6502ceaf36fc1c65ba70441c3e294f502b020ff9d7aa178a950
BLAKE2b-256 checksum
How to use checksums
81560969ea2acbf9967e09a3f2fd00e5975d1cd5bfd176590ddb17d09589d864
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.2

Release files / FortranRNG-1.5.1-cp310-cp310-macosx_10_9_universal2.whl

Download URL FortranRNG-1.5.1-cp310-cp310-macosx_10_9_universal2.whl
Size 28.0 kB
Tags CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
e3b4cec20368b78765e0c3e3e56e43b1d1b5244076b5a290403415e39f986c13
BLAKE2b-256 checksum
How to use checksums
af879a3275fa525c00a2c8ed8c98de515ad6889872591ac2edc57240382ef7a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.2

Release history Release notifications | RSS feed

This release

1.5.1 This release

2 release files

1.5.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page