title: Under what circumstances that you would want to have a different seed for you random number generator?
body: <p>I am wondering under what circumstances that you would want to have a different seed for you random number generator. I see code somewhere that people create a <code>Random</code> object every time when needed, and also see people sometimes would have it as an instance variable that uses a single seed when the object is constructed. For example</p>
  
  <pre><code>// same seed
  class A {
      private Random random;
      public A() { random = new Random(); }
      public int nextInt() { return random.nextInt(10000); }
      public double nextDouble() { return random.nextDouble(); }
  }
  </code></pre>
  
  <p>versus</p>
  
  <pre><code>// different seed is used every time when you call the method
  class B {
      public int nextInt() { return new Random().nextInt(10000); }
      public double nextDouble() { return new Random().nextDouble(); }
  }
  </code></pre>
  
  <p>Please ignore this design for these two wrapper classes, just trying to show the difference.  </p>