Original Post
I'm trying to calculate the amount of things that die from natural causes. At the moment, I've got this: For each thing, I do: if (Random number between 0 and 1) <= (Death probability) (Number to kill off) += 1 Which works fine and is exactly what I want, but I was wondering if there was a way to get the same kind of results with just a single calculation, e.g.: (Number to kill off) = (Random number) * (Death probability) * (Total number) The problem with the above is that it produces a lot lower numbers, and when there are a few things (between 1 and 100 say), you don't get any being killed off.