   Implementing Probability criteria
  Dear AllI am working on 3D missile simulator. Before firing the missile on the target user also define the Hit probability of the missile as input parameter. for example user can enter 90 as hitting probability. I am confused that how to implement this criteria in my application such that sometimes missile hits and some times misses the target according to the hit probability entered by the user.thanks in advance   
  What kind of "failure modes" do you want to incorporate when the missile doesn't hit? Should it simply act like a dud? If so, simply pick a random number in 0..1 and see if it's less than the provided probability (ie 0.9 in your example), if not then it's a dud.If this is not what you want then I think you'll have to explain a bit more.   