Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more

NAME

Random::Simple - Simple, usable, real world random numbers

Why Random::Simple?

To make generating random numbers as easy as possible and in a manner that you can use in real code. Generate "good" random numbers without having to think about it.

Usage

my $integer = random_int($min, $max); # inclusive
my $bytes = random_bytes($count);

See also

  • Math::Random::PCG32

  • Math::Random::ISAAC

  • Math::Random::MT

  • Math::Random::Secure

More information

https://github.com/scottchiefbaker/perl-Random-Simple

Author

Scott Baker - https://www.perturb.org/