Is Java's RNG (using seeds) platform-independent?
为提出(看似明显的)问题而提前道歉。我在网上找不到答案,所以我想我会问:
Java的UTIL随机平台独立吗?
例如,
从文档中:
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. In order to guarantee this property, particular algorithms are specified for the classRandom . Java implementations must use all the algorithms shown here for the classRandom , for the sake of absolute portability of Java code.
号