Part of a group project - probability distribution calculator