Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Eris
Random
RandomRange
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