Skip to main content

A high-quality random number generator library

Project description

LamRand

LamRand is a Python library for generating truly random numbers using advanced mathematical algorithms. This library is designed to be used in various applications where random numbers are needed, such as simulations, games, and cryptographic applications.

Purpose

The purpose of LamRand is to provide a reliable and truly random number generator that can be used across different platforms and applications.

Authors

Installation

You can install LamRand using pip:

pip install LamRand

Dependencies

LamRand requires the following packages:

•	openpyxl
•	scipy

These dependencies will be installed automatically when you install LamRand using pip.

Usage

Here are some usage examples:

  • Importing LamRand
from lamrand import LamRand, LamRandSecure

randomizer = LamRand()
secure_randomizer = LamRandSecure()
  • Generating a random integer
print(randomizer.next())
  • Generating a random float
print(randomizer.next_float())
  • Generating a random integer between two values
print(randomizer.next_int(1, 10))
  • Generating a random boolean
print(randomizer.next_bool())
  • Shuffling a list
data = [1,2,3,4,5]
print(randomizer.shuffle(data))
  • Generating a random string of a given length
print(randomizer.next_string(10))
  • Running Tests
python -m unittest discover

Generating a Gaussian random number with Box-Muller transform

print(randomizer.next_gaussian_box_muller())

Generating a Poisson random number

print(randomizer.next_poisson(3.5))

Saving and loading state

state = randomizer.save_state()
randomizer.load_state(state)

Using the secure randomizer

print(secure_randomizer.next_int(1, 10))
print(secure_randomizer.next_float())
print(secure_randomizer.next_bool())
print(secure_randomizer.next_string(10))

Feedback and New Features

We welcome feedback and suggestions for new features in LamRand. If you have any ideas or encounter any issues while using the library, please feel free to reach out to us.

Providing Feedback

To provide feedback, you can:

  • Open an issue on our GitHub repository.
  • Contact the author directly via email or through their GitHub profile.

When providing feedback, please include as much detail as possible, including steps to reproduce the issue or a clear description of the new feature you would like to see.

Requesting New Features

If you have a specific feature in mind that you would like to see added to LamRand, please follow these steps:

  1. Check the existing issues and pull requests on our GitHub repository to see if the feature has already been requested or is being worked on.
  2. If the feature hasn't been requested yet, open a new issue and clearly describe the feature you would like to see added. Provide any relevant details or examples that can help us understand your request better.
  3. Our team will review your feature request and provide feedback or discuss the feasibility of implementing it.

We appreciate your feedback and contributions to make LamRand even better!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lamrand-0.1.4.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

LamRand-0.1.4-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file lamrand-0.1.4.tar.gz.

File metadata

  • Download URL: lamrand-0.1.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for lamrand-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8aa58755bc3a469c22063f0aeac84cea57d0fdd2221bcdd342d3f3ee1ea62ea4
MD5 5ca1561a1185095b957216f612f0d0a8
BLAKE2b-256 fe7c2e0901da5c731d25669f619f50308b8fe2aada20f9cfca44a54c70da6370

See more details on using hashes here.

File details

Details for the file LamRand-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: LamRand-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for LamRand-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f0496a952e95dbdfc7c245fd9901719a51a3844b15b172092e862050226eb086
MD5 ae59af1d1b8420c4767ebab6c695d1d5
BLAKE2b-256 db22b4b5db8eb26e8a9ec9972ea90041cbee4406c75df303fa1d3763e54b5ebc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page