I am a programming rookie who needs to pass some variables as well as calculate some probabilities after each simulation