src/ExamplesService/Type.php
public function integer(int $min, int $max)
    {
        if ($max < $min) {
            throw new ResponseCode('max must be greater than min', 422);
        }

        return rand($min, $max);
    }
public function integer(int $min, int $max)
    {
        if ($max < $min) {
            throw new ResponseCode('max must be greater than min', 422);
        }

        return rand($min, $max);
    }
public function integer ( int $ min , int $ max ) { if ( $ max < $ min ) { throw new ResponseCode ( 'max must be greater than min' , 422 ) ; } return rand ( $ min , $ max ) ; }
Return a random integer.

taken between $min and $max value

@httpmethod GET
@auth None

@param int $min the min value @validation(gte:0|lte:20)
@param int $max the max value @validation(gte:0|lt:20)

@throws ResponseCode 422 max must be greater than min

@return int
Return a random integer .