import random


def particle_movement_y(time):
    """
    Generates a random movement in the Y label

    Parameter:
    time (int): Time step

    Return:
    y (int): Y position
    """
    y = 0
    directions = [1, -1]
    for i in range(time):
        y = y + random.choice(directions)
    return y