It looks like you're new here. If you want to get involved, click one of these buttons!
I don't understand why you need to set roll2 to 1
Because when you tried to enter into the while loop they would both be 0 therefore (role1 != role2) would be false and the loop would never start. They don't get set to random numbers until the loop has already began.
Thank you very much. It helped a lot