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.
The purpose of LamRand is to provide a reliable and truly random number generator that can be used across different platforms and applications.
- calpimm - Full - Your GitHub
You can install LamRand using pip:
pip install LamRandLamRand requires the following packages:
• openpyxl
• scipy
These dependencies will be installed automatically when you install LamRand using pip.
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 discoverprint(randomizer.next_gaussian_box_muller())print(randomizer.next_poisson(3.5))state = randomizer.save_state()
randomizer.load_state(state)print(secure_randomizer.next_int(1, 10))
print(secure_randomizer.next_float())
print(secure_randomizer.next_bool())
print(secure_randomizer.next_string(10))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.
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.
If you have a specific feature in mind that you would like to see added to LamRand, please follow these steps:
- 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.
- 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.
- 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!
This project is licensed under the MIT License - see the LICENSE file for details.