PHP Class QCheck\Random

Afficher le fichier Open project: steos/php-quickcheck

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode Description
next ( $bits )

Method Details

__construct() public méthode

public __construct ( $seed = null )

i32() public static méthode

public static i32 ( $long )

int_add() public static méthode

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

int_mul() public static méthode

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

mask() public static méthode

public static mask ( $val )

next() protected méthode

protected next ( $bits )

nextDouble() public méthode

public nextDouble ( )

nextInt() public méthode

public nextInt ( )

rshiftu() public static méthode

public static rshiftu ( $a, $b )

setSeed() public méthode

public setSeed ( $seed )