<?php $random = Arr::random(['one' => 'foo', 'two' => 'bar', 'three' => 'baz'], 2, true);
$this->assertIsArray($random);
$this->assertCount(2, $random);
$this->assertCount(2, array_intersect_assoc(['one' => 'foo', 'two' => 'bar', 'three' => 'baz'], $random));
}
public function testRandomNotIncrementingKeys()