public function rand($amount = 1) { $collection = new Collection($this->getIterator()); $this->cursor = $collection->random($amount)->toArray(); $this->makeResource($this->cursor); return $this; }
public function rand($amount = 1) { $collection = new Collection($this->cursor); $this->cursor = $collection->random($amount)->toArray(); return $this; }