public function generate() { $format = $this->getOption('format'); $startDate = $this->getOption('startDate'); $endDate = $this->getOption('endDate'); $time = mt_rand(strtotime($startDate), strtotime($endDate)); return date($format, $time); }