def va_estoque():
    p = np.array([0.1, 0.2, 0.6, 0.1])
    x = np.random.rand()
    if (0 < x <= p[0]):
        return 1
    elif (p[0] < x <= (p[0] + p[1])):
        return 2
    elif ((p[0] + p[1]) < x <= ((p[0] + p[1]) + p[2])):
        return 3
    elif (((p[0] + p[1]) + p[2]) < x <= 1.0):
        return 4
def va_estoque():
    p = np.array([0.1, 0.2, 0.6, 0.1])
    x = np.random.rand()
    if (0 < x <= p[0]):
        return 1
    elif (p[0] < x <= (p[0] + p[1])):
        return 2
    elif ((p[0] + p[1]) < x <= ((p[0] + p[1]) + p[2])):
        return 3
    elif (((p[0] + p[1]) + p[2]) < x <= 1.0):
        return 4