Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
This is an alea extension that brings the
ZPF6329
pseudo random number genererator.
This was derived from alea's XSR128
engine applying arbitrary modifications
just for the fun of it and is not meant to be a proper generator, even if it
has passed specs.
shard.yml
along with alea
:dependencies:
alea:
github: nin93/alea
alea-zpf6329:
github: nin93/alea-zpf6329
shards install
Import the library:
require "alea"
require "alea-zpf6329"
# Use `Alea::ZPF6329` as engine for `Alea::Random`:
random = Alea::Random(Alea::ZPF6329).new
random.normal # => 0.3318250638597536
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)