src/ArrayUtils.php
public static function randArray($length, $first = 0, $last = 255)
    {
        for ($i = 0; $i < $length; $i++) {
            $arr[] = mt_rand($first, $last);
        }
        return $arr;
    }
public static function randArray($length, $first = 0, $last = 255)
    {
        for ($i = 0; $i < $length; $i++) {
            $arr[] = mt_rand($first, $last);
        }
        return $arr;
    }
Returns an array of random integers: $first <= random int <= $last.
@param  int  $length
@param  integer $first
@param  integer $last
@return array