calculate probability for a given lottery