Used for choosing a category based on that categories probability.