Firstly we can help you more if you post some code to examine. From what i gather, your problem has to do with your loops or threads in the program. You need to retrace the code to see what gets executed when.
You should create a method and give it a name like getToss() which will return the toss variable. getToss() will be called just before the System.out.println() statement. Hope this helps.