Math::RandomOrg(3pm) | User Contributed Perl Documentation | Math::RandomOrg(3pm) |
Math::RandomOrg - Retrieve random numbers and data from random.org.
use Math::RandomOrg qw(randnum randbyte); my $number = randnum(0, 10); my $octet = randbyte(1);
Math::RandomOrg provides functions for retrieving random data from the random.org server. Data may be retrieved in an integer or byte-stream format using the "randnum" and "randbyte" functions respectively.
None by default. You may request the following symbols be exported:
By default, $max and $min are positive and negative 1e9, respectively. These default values represent random.org's current extrema for the bounds of the randnum function. Therefore, $min and $max may not exceed the default values.
$length may not exceed 16,384, as this is the maximum number of bytes retrievable from the random.org server in one request, and making multiple requests for an unbounded amount of data would unfairly tax the random.org server. If you need large amounts of random data, you may wish to try the Math::TrulyRandom module.
Example: "randseq(1, 10)" will return the numbers between 1 and 10 (both inclusive) in a random order.
None known.
Copyright (c) 2001-2006 Gregory Todd Williams. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Gregory Todd Williams "<gwilliams@cpan.org>"
2022-10-13 | perl v5.36.0 |