RandomNumberGenerator
in package
implements
RandomNumberGeneratorInterface
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- RandomNumberGenerator constructor.
- generate() : GMP
- Generate a random number between 0 and the specified upper boundary.
Properties
$adapter
private
GmpMathInterface
$adapter
Methods
__construct()
RandomNumberGenerator constructor.
public
__construct(GmpMathInterface $adapter) : mixed
Parameters
- $adapter : GmpMathInterface
generate()
Generate a random number between 0 and the specified upper boundary.
public
generate(GMP $max) : GMP
Parameters
- $max : GMP