Page MenuHomeWickedGov Phorge

MtRandSource.php
No OneTemporary

Size
523 B
Referenced Files
None
Subscribers
None

MtRandSource.php

<?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

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)

Event Timeline