Search
Documents
Math::RandomOrg - Retrieve random numbers and data from random.org. (Displayed) README
|
Math::RandomOrg - Retrieve random numbers and data from random.org.
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.
- Carp
- Exporter
- Math::BigInt
- LWP::Simple
None by default. You may request the following symbols be exported:
randnum ( $min, $max )
-
Return an integer (specifically a Math::BigInt object) between the bounds [ $min, $max ] (inclusive).
-
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.
randbyte ( $length )
-
Returns an octet-string of specified length (defaults to one byte), which contains random bytes.
-
$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.
None known.
Gregory Williams <greg@evilfunhouse.com>
Copyright (c) 2002, Gregory Williams. All rights reserved.
This module is free software. It may be used, redistributed
and/or modified under the same terms as Perl itself.
Information
|
This site is currently in testing, it is not yet operating using the full database. Until it is officially launched you may wish to visit Help-Site Computer Manuals. After launch, this site (HelpSpy) will replace Help-Site. Information about the spider which is currently trawling the Internet looking for links to add to this directory can be found here. |
|
|