maymeow / random
Pseudo random generator library
v0.1.2
2017-01-21 13:00 UTC
Replaces
This package is auto-updated.
Last update: 2024-12-14 03:28:52 UTC
README
I needed pseudo generator which for given seed return stil same values.
Installation
TODO: Describe the installation process
Usage
Create new instance of generator
use AsunaY\XorShift; // As seed you can use any integer number. $xs = new XorShift($seed);
Generate random number
$xs->getRand();
or you can set max and min value to get random number from
$xs->getRand(15,50);
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
TODO: Write history
Credits
License
MIT