| 1 | <?php |
||
| 8 | final class RandomNumberGenerator |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var GmpMath |
||
| 12 | */ |
||
| 13 | private $adapter; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * RandomNumberGenerator constructor. |
||
| 17 | * @param GmpMath $adapter |
||
| 18 | */ |
||
| 19 | public function __construct(GmpMath $adapter) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param \GMP $max |
||
| 26 | * @return \GMP |
||
| 27 | */ |
||
| 28 | public function generate(\GMP $max) |
||
| 42 | } |
||
| 43 |