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