MersenneTwister

Custom random algorithm to get consistent behaviour between PHP versions.

Copied from: http://www.dr-chuck.com/csev-blog/2015/09/a-mersenne_twister-implementation-in-php/

Methods

__construct

__construct(integer $seed = null) 

Arguments

$seed

integer

setSeed

setSeed(integer $seed) 

Arguments

$seed

integer

generateTwister

generateTwister() 

getNext

getNext(integer $min = null, integer $max = null) 

Arguments

$min

integer

$max

integer

Properties

state

state : 

index

index :