perl-Test-MockRandom - Override randoms with non-random behavior

Property Value
Distribution Mageia 7
Repository Mageia Core i586
Package filename perl-Test-MockRandom-1.10.0-6.mga7.noarch.rpm
Package name perl-Test-MockRandom
Package version 1.10.0
Package release 6.mga7
Package architecture noarch
Package type rpm
Category Development/Perl
License GPL or Artistic
Maintainer -
Download size 28.74 KB
Installed size 58.86 KB
This perhaps ridiculous-seeming module was created to test routines that
manipulate random numbers by providing a known output from 'rand'. Given a
list of seeds with 'srand', it will return each in turn. After seeded
random numbers are exhausted, it will always return 0. Seed numbers must be
of a form that meets the expected output from 'rand' as called with no
arguments -- i.e. they must be between 0 (inclusive) and 1 (exclusive). In
order to facilitate generating and testing a nearly-one number, this module
exports the function 'oneish', which returns a number just fractionally
less than one.
Depending on how this module is called with 'use', it will export 'rand' to
a specified package (e.g. a class being tested) effectively overriding and
intercepting calls in that package to the built-in 'rand'. It can also
override 'rand' in the current package or even globally. In all of these
cases, it also exports 'srand' and 'oneish' to the current package in order
to control the output of 'rand'. See the /USAGE manpage for details.
Alternatively, this module can be used to generate objects, with each
object maintaining its own distinct seed array.


Package Version Architecture Repository
perl-Test-MockRandom-1.10.0-6.mga7.noarch.rpm 1.10.0 noarch Mageia Core
perl-Test-MockRandom - - -


Name Value
perl(Carp) -
perl(strict) -
perl(warnings) -
perl-base >= 5.28.0


Name Value
perl(Test::MockRandom) = 1.10.0
perl-Test-MockRandom = 1.10.0-6.mga7


Type URL
Binary Package perl-Test-MockRandom-1.10.0-6.mga7.noarch.rpm
Source Package perl-Test-MockRandom-1.10.0-6.mga7.src.rpm

Install Howto

  1. Enable the repository in Software Management
  2. Install perl-Test-MockRandom rpm package:
    # dnf install perl-Test-MockRandom




2018-09-19 - umeabot <umeabot> 1.10.0-6.mga7
(not released yet)
+ Revision: 1271969
- Mageia 7 Mass Rebuild
2016-06-19 - pterjan <pterjan> 1.10.0-5.mga6
+ Revision: 1034372
- Rebuild for perl 5.22.2
2016-02-04 - umeabot <umeabot> 1.10.0-4.mga6
+ Revision: 935757
- Mageia 6 Mass Rebuild

See Also

Package Description
perl-Test-MockTime-0.170.0-2.mga7.noarch.rpm Mock time/localtime for testing
perl-Test-Mojibake-1.300.0-3.mga7.noarch.rpm Check your source for encoding misbehavior
perl-Test-Moose-More-0.50.0-3.mga7.noarch.rpm More tools for testing Moose packages
perl-Test-More-UTF8-0.50.0-2.mga7.noarch.rpm Enhancing Test::More for UTF8-based projects
perl-Test-Most-0.350.0-2.mga7.noarch.rpm Most commonly needed test functions and features
perl-Test-Needs-0.2.6-1.mga7.noarch.rpm Skip tests when modules not available
perl-Test-NeedsDisplay-1.70.0-11.mga7.noarch.rpm Ensure that tests needing a display have one
perl-Test-NoSmartComments-0.5.0-5.mga7.noarch.rpm Make sure no Smart::Comments escape into the wild
perl-Test-NoTabs-2.20.0-2.mga7.noarch.rpm Check the presence of tabs in your project
perl-Test-NoWarnings-1.40.0-8.mga7.noarch.rpm Make sure you didn't emit any warnings while testing
perl-Test-Number-Delta-1.60.0-4.mga7.noarch.rpm Test-Number-Delta - Perl module
perl-Test-Object-0.80.0-2.mga7.noarch.rpm Thoroughly testing objects via registered handlers
perl-Test-Output-1.31.0-3.mga7.noarch.rpm Utilities to test STDOUT and STDERR messages
perl-Test-PAUSE-Permissions-0.70.0-2.mga7.noarch.rpm Tests module permissions in your distribution
perl-Test-POE-Client-TCP-1.260.0-1.mga7.noarch.rpm A POE Component providing TCP client services for test cases