Zend Framework
1.12
|
Public Member Functions | |
rand ($minimum, $maximum) | |
Generate a pseudorandom number within the given range. | |
btwoc ($long) | |
Get the big endian two's complement of a given big integer in binary notation. | |
fromBinary ($binary) | |
Translate a binary form into a big integer string. | |
toBinary ($integer) | |
Translate a big integer string into a binary form. | |
![]() | |
__construct ($extension=null) | |
Constructor; a Factory which detects a suitable PHP extension for arbitrary precision math and instantiates the suitable wrapper object. | |
__call ($methodName, $args) | |
Redirect all public method calls to the wrapped extension object. | |
Additional Inherited Members | |
![]() | |
_loadAdapter ($extension=null) | |
![]() | |
$_math = null | |
btwoc | ( | $long | ) |
Get the big endian two's complement of a given big integer in binary notation.
string | $long |
fromBinary | ( | $binary | ) |
Translate a binary form into a big integer string.
string | $binary |
rand | ( | $minimum, | |
$maximum | |||
) |
Generate a pseudorandom number within the given range.
Will attempt to read from a systems RNG if it exists or else utilises a simple random character to maximum length process. Simplicity is a factor better left for development...
string | int | $minimum | |
string | int | $maximum |
toBinary | ( | $integer | ) |
Translate a big integer string into a binary form.
string | $integer |