PHP Class Eris\Random\RandomRange

Show file Open project: giorgiosironi/eris

Public Methods

Method Description
__construct ( $source )
rand ( integer | null $lower = null, integer | null $upper = null ) : integer Return a random number.
seed ( $seed ) : void

Method Details

__construct() public method

public __construct ( $source )

rand() public method

If $lower and $upper are specified, the number will fall into their inclusive range. Otherwise the number from the source will be directly returned.
public rand ( integer | null $lower = null, integer | null $upper = null ) : integer
$lower integer | null
$upper integer | null
return integer

seed() public method

public seed ( $seed ) : void
return void