« Random\Engine\Secure::generate
Random\Engine\Mt19937::__construct »
PHP Manual
Random
Random\Engine\Mt19937 类
Random\Engine\Mt19937 类
(PHP 8 >= 8.2.0)
简介
实现
» Mt19937
(“梅森旋转”)算法。
类摘要
final
class
Random\Engine\Mt19937
implements
Random\Engine
{
/* 方法 */
public
__construct
(
?
int
$seed
=
null
,
int
$mode
=
MT_RAND_MT19937
)
public
__debugInfo
():
array
public
generate
():
string
public
__serialize
():
array
public
__unserialize
(
array
$data
):
void
}
目录
Random\Engine\Mt19937::__construct
— Constructs a new Mt19937 engine
Random\Engine\Mt19937::__debugInfo
— Returns the internal state of the engine
Random\Engine\Mt19937::generate
— Generate 32 bits of randomness
Random\Engine\Mt19937::__serialize
— Serializes the Mt19937 object
Random\Engine\Mt19937::__unserialize
— Deserializes the data parameter into a Mt19937 object