public function testRand() { $collection = new Collection([1, 2, 3]); $result = $collection->rand(); $this->assertCount(1, $result); $result = $collection->rand(2); $this->assertCount(2, $result); }