valid probability distribution calculator