title: Python, Simulate Question Answer with a certain probability
body: <p>I have a dictionary in which I have the probability of committing an action similar to this one:</p>
  <pre><code>Diz = {'A' = 0.5,
      'B' = 0.2,
      'C' = 0.3,
      'A|B' = 0.95,
      'B|A' = 0.2,
  }
  </code></pre>
  <p>I have a List of Action</p>
  <pre><code>L = [A,B,C]
  </code></pre>
  <p>I want to simulate the probability of answering a question:
  For example I have
  Question A:
  I want that out of then trial the answer will be correct for 50% of the time and
  the rest-ant 50 % will be not correct. Same for the other variables.</p>
  <p>For example if I run ten times the algorithm 10 times the result should be deterministic with respect to the probability:</p>
  <pre><code>A = Corr,
  A = Non-Corr
  A = Corr,
  A = Non-Corr
  A = Corr,
  A = Non-Corr
  A = Corr,
  A = Non-Corr
  A = Corr,
  A = Non-Corr
  </code></pre>
  <p>Similar for the other variables.</p>