title: python - random number and calculations dont work together
body: <p>I try to generate a random number, then substract this number as percentage from my original price with following code:</p>
  <pre><code>rndnm = random.sample(range(10, 40), 1)
  priceraw = int(price) - (int(price)/100*int(rndnm))
  saleprice = str(priceraw)
  print(saleprice)
  </code></pre>
  <p>nothing gets printed with this. how should i write it that it works?</p>