I must write a computer program that, when given a probability mass function {pj , j = 1, . . . , n} as an input, gives as an output the value of a random variable having this mass function. Those are my only informations about the problem and i can't even figure out how to start.Can someone please help me?
Aucun commentaire:
Enregistrer un commentaire