title: one liner to generate a random number between 0 and 100 but last digit ends in 0, 1, 2, 3, 4
body: <p>Without concat strings or <code>if</code> conditionals and such, use arithmetics one-liner. Preferably written in Python please.</p>
  
  <hr>
  
  <p>Background of the story: a legacy system requires a listening port last digit ends in [0-4] so [5-9] is reserved for a mirror TCP.</p>
  
  <p>I wrote a deploy script which generates <a href="https://ansibledaily.com/idempotent-random-number/" rel="nofollow noreferrer">idempotent random number</a> but having trouble guarantee the last digit in [0-4]. Since Ansible &amp; Jinja2 template language is limited so I don't want the code relies too much on hairy string operations and <code>if</code> conditions.</p>
  
  <p>Once a idempotent random number is generated, I need a arithmetic function to <em>project</em> the number to another integer which the last digit is between 0 and 4 and still guarantee the idempotence</p>