NAME

Random::Any - Try to use Data::Entropy::Algorithms::rand(), fallback on builtin rand()

VERSION

This document describes version 0.004 of Random::Any (from Perl distribution Random-Any), released on 2018-04-18.

SYNOPSIS

 use Random::Any qw(rand);

 say rand();

DESCRIPTION

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().

EXPORTS

-warn => bool

Can be set to true to emit a warning if Data::Entropy::Algorithms is not available.

FUNCTIONS

rand

ENVIRONMENT

PERL_RANDOM_ANY_WARN

Bool. Can be set to provide default value for -warn.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Random-Any.

SOURCE

Source repository is at https://github.com///git@github.com/perlancar/perl-Random-Any.

BUGS

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.

SEE ALSO

Data::Entropy::Algorithms

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

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.