public static function of($generator, $rand) { return new self($generator, $rand); }
/** * @return Sample */ protected function sampleShrink(Generator $generator, $fromValue = null) { return Sample::of($generator, $this->randFunction)->shrink($fromValue); }