title: Generate more than one random numbers using native or built-in function
body: <p>I know for generating random number there is random function in java</p>
  
  <pre><code>for example 
  
         int randomNumber = ( int )( Math.random() * 9999 );
  </code></pre>
  
  <p>which will generate randomNumber from [0,9999] but it only returns one number by given range.</p>
  
  <p>But I just want to know <strong>if there is any built in function or you can say native function</strong> which will generate more than one random numbers and it should also not match with each other</p>
  
  <p>suppose from above example if i want to generate 4 number</p>
  
  <p>it will return like 1,10,50,5544</p>
  
  <p>Here you can see that there is a four random number and it is not matching with each other .</p>