title: Can you find previously generated random numbers using java.util.Random?
body: <p>Is it possible to find previously generated random numbers using <code>java.util.Random</code>? </p>
  
  <hr>
  
  <p>I found information at <a href="http://www.javamex.com/tutorials/random_numbers/java_util_random_algorithm.shtml#.VeU1y_lViko" rel="nofollow">this</a> website, it indicates that it uses a <a href="https://en.wikipedia.org/wiki/Linear_congruential_generator" rel="nofollow">LCG</a> in the format </p>
  
  <p>number<sub>i+1</sub> = (a * number<sub>i</sub> + c) mod 2<sup>48</sup></p>
  
  <p>where the first value of number is seed and is simply incremented by one every time nextInt (or somthing similar) is called</p>
  
  <p>Does anyone have any more information on how it is generated? or what the offset values are?</p>
  
  <p>Edit: I found <a href="http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/classes/java/util/Random.java" rel="nofollow">this</a> source code from the openjdk</p>