Stochastic and deterministic simulations of the bacteriophage decision-making process