title: unique random number generation
body: <p>I'm looking for way to generate unique random numbers based on current time using java.
  I'm a c++ programmer and in c++ I usually seed the Random with time so at each specific moment I can get a unique random number and it works like this :</p>
  
  <pre><code>sRand((time)Null);
  x=Rand();
  </code></pre>
  
  <p>In java I found that I can use the same method by seeding the random number with time like this:</p>
  
  <pre><code>Random rand = new Random(System.currentTimeMillis());
  </code></pre>
  
  <p>Here is the problem I have used all the methods I found over the internet for generating a random number in java but none of them were truly random and they ranged from negative to positive numbers.
  For example:</p>
  
  <pre><code>Random rand = new Random(System.currentTimeMillis());
  int x=rand.nextInt(); // or long or float ...
  </code></pre>
  
  <p>What I get is a series of not truly random numbers and the result is really different than in C++. </p>
  
  <p>I just want to know what the best way to do this in java is, some like or very close to TAC number generation.</p>