Generate random numbers with known occurence possibilities

Discussion created by anthirini on Apr 6, 2013
Latest reply on Apr 7, 2013 by anthirini

I would like to generate random triads of numbers (h, v, d).

The d number is generated according to the generated values of h, v following some if statements

h and v are integers within a known interval

For example if h=1 and v=2 ... d can take the value 1 (with possibility 83.3%) or 2 (6.7 %) or 3 (10 % possibility).

How can I declare these possibilities in Python???