Question: Reference: [link text](http://download.oracle.com/javase/1.4.2/docs/api/java/util/Random.html)

i cannot understand the following line , can anybody provide me some example for the below statement?

If two instances of Random are created with the same seed, and the same sequence of method calls is made for each, they will generate and return identical sequences of numbers

Answer: 
The Random class basically is a **Psuedorandom Number Generator** (also known as **Deterministic random bit generator**) that generates a sequence of numbers that approximates the properties of random numbers. It's not generally random but deterministic as it can be determined by small random states in the generator (such as `seed`). Because of the deterministic nature, you can generate identical result if you the sequence of methods and seeds are identical on 2 generators.
This means that when you create the Random object (e.g. at the start of your program), you will probably want to start with a new seed. Mostly people choose some time related value, such as the number of ticks.

The fact that the number sequences are the same given the same seed is actually very convenient if you want to debug your program: make sure you log the seed value and if something is wrong you can restart the program in the debugger using that same seed value. This means you can replay the scenario exactly. This would be impossible if you would (could) use a true random number generator.