def complex_state_generator_bravo(last_state=''):
    """Pick a state."""
    from random import choice

    states = ['ALPHA', 'BRAVO', 'BRAVO', 'DONE']
    if last_state:
        states.remove(last_state)  # Slightly lower chances of previous state.

    state = choice(states)

    logging.info('Generating a state... %s', state)

    return state
Pick a state.