mardi 26 mai 2015

Random generation of tuple `(A, B)` so that `A + B <= C`?

How can I uniformly generate random tuples of natural numbers A and B, so that A + B <= C, where C is constant?




Aucun commentaire:

Enregistrer un commentaire