In this equation, the variable vari is assigned by i value with probability .In case where n = 1 we have the notation: with a1 = 1. The model checker PRISM permits us to specify arbitrarily probabilities for actions, for example in case n = 2 we can model a tendency in BB84 protocol of Alice in the choice of the quantum states by a module containing the action: