This function determines the next state base on the current state and the transition matrix.
Examples
N_states = 3
lambdas = lambda_determination(N_states)
transition_df = transfer_probabilities(N_states)
determine_next_state(1, transition_df)
#> [1] 3
