Algorithm AS 35: Probabilities Derived from Finite Populations