The "Apache Commons RNG" project started off from code originally in the "Apache Commons Math" project; there, the code in package org.apache.commons.math3.random had its design prominently based on the JDK's Random class. Although it is often a good idea to rely on the language's standard library, sometimes it is not.
Unless unfazed by the above, it is clear that application developers should avoid java.util.Random, as a generator, and as a base class. For new applications, it is recommended to switch to any of the better alternatives provided in "Commons RNG". For legacy applications where the java.util.Random type is part of an API that cannot be changed, developers can wrap any of the generators implemented in this library within an instance of the JDKRandomBridge adapter class. |