title: How to generate an N digit random number using string as seed in Perl
body: <p>I am looking for a way to generate a 4 digit random number using the file path as input. I am trying to give unique name to each software installation in my machine and the name is <code>software_product_name</code>+<code>4 digit random number</code>. It's very rare to have the same software installed twice but if it is the case I don't want to end up with the same name. I have a different way to get the software name. </p>
  
  <p>Is there an efficient way I can generate 4 digit random number that would result in different number for different paths? </p>