Random::Any - Try to use Data::Entropy::Algorithms::rand(), fallback on builtin rand()
This document describes version 0.004 of Random::Any (from Perl distribution Random-Any), released on 2018-04-18.
use Random::Any qw(rand); say rand();
This module provides a single export rand() that tries to use Data::Entropy::Algorithms's rand() first and, if that module is not available, falls back on the builtin rand().
rand()
Can be set to true to emit a warning if Data::Entropy::Algorithms is not available.
Bool. Can be set to provide default value for -warn.
-warn
Please visit the project's homepage at https://metacpan.org/release/Random-Any.
Source repository is at https://github.com///git@github.com/perlancar/perl-Random-Any.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Random-Any
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Data::Entropy::Algorithms
perlancar <perlancar@cpan.org>
This software is copyright (c) 2018 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Random::Any, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Random::Any
CPAN shell
perl -MCPAN -e shell install Random::Any
For more information on module installation, please visit the detailed CPAN module installation guide.