20 May 2021 06:02:10 UTC
- Distribution: Math-Random-Free
- Module version: 0.2.0
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Testers (257 / 4 / 0)
- KwaliteeBus factor: 1
- 62.92% Coverage
- License: bsd
- Activity24 month
- Download (4.32KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionMERKYS Andrius Merkys
Math::Random::Free - free drop-in replacement for Math::Random
This is free (see below) implementation of Math::Random 0.72, serving as drop-in replacement for this module.
Math::Random is a great and widely-used module for the generation of random numbers and permutations. Despite being open-source, Math::Random does not fulfill free open-source software definitions as established by the Open Source Initiative (https://opensource.org/osd) and the Debian Project (https://www.debian.org/social_contract#guidelines, a.k.a. DFSG). This is mostly because
randlibcode cannot be copied nor distributed for direct commercial advantage. Math::Random::Free is created to free the code depending on Math::Random from these limitations.
our @EXPORT = qw( random_normal random_permutation random_permuted_index random_set_seed_from_phrase ); our @EXPORT_OK = qw( random_exponential random_normal random_permutation random_permuted_index random_set_seed_from_phrase random_uniform random_uniform_integer );
This module has only a subset of Math::Random subroutines (contributions welcome), implemented using either Perl core subroutines or other well-known modules. Thus Math::Random::Free is neither as complete, nor as fast, nor as random as Math::Random. Also Math::Random::Free does not aim for cryptographic security.
While Math::Random::Free supports seed setting, it does that differently from Math::Random. It means that one should not expect the same seed producing identical random sequences in both modules.
As Math::Random::Free employs List::Util for producing random permutations, these are influenced by
Andrius Merkys, mailto:firstname.lastname@example.org
Module Install Instructions
To install Math::Random::Free, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Math::Random::Free
For more information on module installation, please visit the detailed CPAN module installation guide.