from typing import Dict
import random


def randomValue(interval: Dict[str, int]) -> int:
    """Generate a random integer value from a given interval."""
    if not isinstance(interval, dict):
        raise ValueError('value has to be dict')
    return random.randrange(interval['min'], interval['max'], 1) // 1