Random seed Math.random in Java
You will probably want to use the special Random class. It gives you more control over the random numbers. To do this you first need to create a new random object.
Random generator = new Random(seed);
Then generate a new number by
double random = generator.nextDouble();
http://docs.oracle.com/javase/6/docs/api/java/util/Random.html