fysiks is right I dont know what the % operator does thought it divides.
How can I make it work so that it takes a deathshot randomly between 2 - 12?
It doesn't have to be specifically between these two numbers as long as it randomly gets taken within the first couple of deaths.
% is the modulo operator. It gives you the remainder of integer division.