Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6065131
MtRandSource.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
523 B
Referenced Files
None
Subscribers
None
MtRandSource.php
View Options
<?php
namespace
Eris\Random
;
class
MtRandSource
implements
Source
{
/**
* Returns a random number between 0 and @see max().
* @return integer
*/
public
function
extractNumber
()
{
return
mt_rand
(
0
,
$this
->
max
());
}
/**
* @return integer
*/
public
function
max
()
{
return
mt_getrandmax
();
}
/**
* @param integer $seed
* @return self
*/
public
function
seed
(
$seed
)
{
mt_srand
(
$seed
);
return
$this
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 5 2026, 04:17 (6 w, 4 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
50/60/d179e812b9e5e7e18a25bf4c93e3
Default Alt Text
MtRandSource.php (523 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment