def decide(p_values,states):

    choices = [0] * len(p_values) # init w/ 0
    state_names = list(set(states))
    
    # open Q: what is the p
    for ii,p in enumerate(p_values):
        if p == 1:
            choices[ii] = states[ii]
        elif np.rand.random() < p:
            choices[ii] = states[ii]
        else:
            pass
            # TODO and so when not p=1 and was not chosen
            # do what?

    return choices
Return the number of child elements.
dataset/ETHPy150Open parenthetical-e/rl/policy.py/decide--crossover with--dataset/ETHPy150Open openstack/rack/rack/api/xmlutil.py/TemplateElement.__len__