Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

math::random::tt800(3pm) [debian man page]

TT800(3pm)						User Contributed Perl Documentation						TT800(3pm)

NAME
Math::Random::TT800 - Matsumoto's TT800 Pseudorandom number generator DESCRIPTION
This perl extension module implements M. Matsumoto's twisted generalized shift register generator called TT800 as described in his article published in ACM Transactions on Modelling and Computer Simulation, Vol. 4, No. 3, 1994, pages 254-266. SYNOPSIS
use Math::Random::TT800; my $tt = new Math::Random::TT800; $value = $tt->next(); $ivalue = $tt->next_int(); FUNCTIONS
new my $tt = new Math::Random::TT800; my $tt = new Math::Random::TT800 @seeds; Create a new TT800 object. Providing seeds is optional. A TT800 takes 25 integers as seed which must not be all zero. If less than 25 integers are supplied, the rest are taken from the default seed. next $value = $tt->next(); next returns the next pseudorandom number from the TT800 object as a floating point value in the range [0,1). next_int $ivalue = $tt->next_int(); next_int returns a integer value filled with 32 random bits. COPYRIGHT
This implementation is based on the C code by M. Matsumoto <matumoto@math.keio.ac.jp> available from ftp://random.mat.sbg.ac.at/pub/data/tt800.c. Converted to a perl extension module and enhancements to support multiple streams of pseudorandom numbers by Otmar Lendl <lendl@cosy.sbg.ac.at>. Copyright (c) 1997 by Otmar Lendl (Perl and XS code). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2002-10-23 TT800(3pm)

Check Out this Related Man Page

Math::Random::ISAAC::PP(3pm)				User Contributed Perl Documentation			      Math::Random::ISAAC::PP(3pm)

NAME
Math::Random::ISAAC::PP - Pure Perl port of the ISAAC PRNG algorithm VERSION
version 1.003 SYNOPSIS
This module implements the same interface as "Math::Random::ISAAC" and can be used as a drop-in replacement. However, it is recommended that you let the "Math::Random::ISAAC" module decide whether to use the PurePerl or XS version of this module, instead of choosing manually. Selecting the backend to use manually really only has two uses: o If you are trying to avoid the small overhead incurred with dispatching method calls to the appropriate backend modules. o If you are testing the module for performance and wish to explicitly decide which module you would like to use. Example code: # With Math::Random::ISAAC my $rng = Math::Random::ISAAC->new(time); my $rand = $rng->rand(); # With Math::Random::ISAAC::PP my $rng = Math::Random::ISAAC::PP->new(time); my $rand = $rng->rand(); DESCRIPTION
See Math::Random::ISAAC for the full description. METHODS
new Math::Random::ISAAC::PP->new( @seeds ) Implements the interface as specified in "Math::Random::ISAAC" rand $rng->rand() Implements the interface as specified in "Math::Random::ISAAC" irand $rng->irand() Implements the interface as specified in "Math::Random::ISAAC" SEE ALSO
Math::Random::ISAAC BUGS
Please report any bugs or feature requests on the bugtracker website http://rt.cpan.org/NoAuth/Bugs.html?Dist=Math-Random-ISAAC 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. AUTHOR
Jonathan Yu <jawnsy@cpan.org> COPYRIGHT AND LICENSE
Legally speaking, this package and its contents are: Copyright (c) 2011 by Jonathan Yu <jawnsy@cpan.org>. But this is really just a legal technicality that allows the author to offer this package under the public domain and also a variety of licensing options. For all intents and purposes, this is public domain software, which means you can do whatever you want with it. The software is provided "AS IS", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software. perl v5.10.1 2011-02-13 Math::Random::ISAAC::PP(3pm)
Man Page