PHP Class QCheck\Random

Exibir arquivo Open project: steos/php-quickcheck

Public Methods

Method Description
__construct ( $seed = null )
i32 ( $long )
int_add ( $x, $y ) addition with only shifts and ands
int_mul ( $a, $b ) http://stackoverflow.com/questions/4456442/multiplication-of-two-integers-using-bitwise-operators
mask ( $val )
nextDouble ( )
nextInt ( )
rshiftu ( $a, $b )
setSeed ( $seed )

Protected Methods

Method Description
next ( $bits )

Method Details

__construct() public method

public __construct ( $seed = null )

i32() public static method

public static i32 ( $long )

int_add() public static method

addition with only shifts and ands
public static int_add ( $x, $y )

int_mul() public static method

http://stackoverflow.com/questions/4456442/multiplication-of-two-integers-using-bitwise-operators
public static int_mul ( $a, $b )

mask() public static method

public static mask ( $val )

next() protected method

protected next ( $bits )

nextDouble() public method

public nextDouble ( )

nextInt() public method

public nextInt ( )

rshiftu() public static method

public static rshiftu ( $a, $b )

setSeed() public method

public setSeed ( $seed )