import random


def uniform_in_bounds(bounds):
    """Generates a random uniform sample between ``bounds``.

    :param bounds: the bounds we must adhere to
    :type bounds: dict {"name": [lb ub], ...}
    """
    return map(random.uniform, *zip(*bounds.values()))