import random


def particle_movement_x(time):
    """
    Generates a random movement in the X label

    Parameter:
    time (int): Time step

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