title: How can I generate a random 15 digit-long in java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5392693/java-random-number-with-given-length">Java random number with given length</a>  </p>
  </blockquote>
  
  
  
  <p>I have been trying to generate a 15 digit long number in java but it seems I have failed to do it so far as using:</p>
  
  <p>This is producing a maximum of 10 digits. </p>
  
  <pre><code>  Random random = new Random();
    int rand15Digt = random.nextInt(15);
  </code></pre>
  
  <p>How can I generate it successfully?</p>