After reading this answer: the best way to pick a random subset from a collection?
I am wondering how to select random seed in Java?
And don't say use System.currentTimeMillis () or System.nanoTime (). Read the article to understand why not.
This is a difficult question, but let me make it harder. Let's say you need to create a random seed without connecting to the Internet, without using user input (IE, there is no gui there), and it should be cross-platform (so there is no JNI to access the equipment).
Are there some JVM variables that we can control as a source of our randomness?
Can this be done? Or is it impossible?
source share