Skip to content

Instantly share code, notes, and snippets.

@stekycz
Created November 26, 2013 16:28
Show Gist options
  • Save stekycz/7661421 to your computer and use it in GitHub Desktop.
Save stekycz/7661421 to your computer and use it in GitHub Desktop.
Trolling random number generator
<?php
class TrollRandomNumberGenerator
{
/**
* @var int
*/
private $seed;
public function __construct($seed = 42)
{
$this->seed = $seed;
}
/**
* Returns next random number.
*
* @return int
*/
public function nextRandomNumber()
{
return $this->seed;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment