import random


def random_items_in_data(data, num_items):
    """
    Returns num_items from data without replacement.
    Picks random rows of data.

    Parameters
    ----------
    data : numpy.ndarray
    num_items : int, pos
        The number of items to return.
        num_items must not exceed the number of rows
        in data.

    Returns
    -------
    random_items: numpy.ndarray
        An array with num_items rows. The number of
        columns of random_items is the same as the
        number of columns in data.

    """
    # random.sample(range(0, len(data)), num_items) is
    # a list of num_items random numbers in the range
    # [0, len(data)) where the list has no duplicates.
    index = random.sample(range(0, len(data)), num_items)
    random_items = data[index, :]
    return random_items