Probability of kill
Computer games, simulations, models, and operations research programs often require a mechanism to determine statistically whether the engagement between a weapon and a target resulted in a kill, or the probability of kill. Statistical decisions are required when all of the variables that must be considered are not incorporated into the model, similar to the actuarial methods used by insurance companies to deal with large numbers of customers and huge numbers of variables. Likewise, military planners rely on such calculations to determine the amount of weapons necessary to destroy an enemy force.
The Probability of Kill (or Pk) is usually based on a uniform random number generator. This algorithm creates a number between 0 and 1 that is approximately uniformly distributed in that space. If the Pk of a weapon/target engagement is 30% (or 0.30), then every random number generated that is less than 0.3 is considered a kill. Every number greater than 0.3 is considered a "not kill". When used many times in a simulation, the average result will be that 30% of the weapon/target engagements will be a kill and 70% will not be a kill.