#
# your code is here
#
prob_dict = dict()
prob_6 = 1/(7+5+4+2+6+1)
prob_5 = 6/(7+5+4+2+6+1)
prob_4 = 2/(7+5+4+2+6+1)
prob_3 = 4/(7+5+4+2+6+1)
prob_2 = 5/(7+5+4+2+6+1)
prob_1 = 7/(7+5+4+2+6+1)
prob_dict['6'] = prob_6 
prob_dict['5'] = prob_5
prob_dict['4'] = prob_4
prob_dict['3'] = prob_3
prob_dict['2'] = prob_2
prob_dict['1'] = prob_1
print(prob_dict)

#
# your solution is here
#
from random import randrange
import numpy as np
state1 = randrange(101)
state2 = randrange(101)
state3 = randrange(101)
state4 = randrange(101)
sum_states = state1 + state2 + state3 + state4
state_vector = list()
state_vector.append(state1/sum_states)
state_vector.append(state2/sum_states)
state_vector.append(state3/sum_states)
state_vector.append(state4/sum_states)
print(state_vector)
state_vector = np.array(state_vector)

# state vector
print("state vector: " + str(np.transpose(state_vector)))
print("all state probs has to sum up to 1: " + str(np.sum(state_vector)))

