Implementation of a dummy function to move from a state to another
according to a predefined probability.