Create cryptographically secure pseudo-random numbers, and manage big integers

3.4.0 2021-10-09 15:15 UTC


This package is considered feature-complete, and is now in security-only maintenance mode, following a decision by the Technical Steering Committee. If you have a security issue, please follow our security reporting guidelines. If you wish to take on the role of maintainer, please nominate yourself

If you are looking for an actively maintained package alternative, we recommend:

Build Status

Laminas\Math provides general mathematical functions. So far the supported functionalities are:

  • Laminas\Math\Rand, a random number generator;
  • Laminas\Math\BigInteger, a library to manage big integers.

Migration notes from v2 to v3

We document migration notes from v2 to v3, providing details of potential BC breaks and/or API differences you may need to be aware of.