Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-210

Use RandomGenerator interface instead of Random for the workingRandom so a user can replace the Random implementation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 6.1.0.Beta1
    • None
    • optaplanner-core
    • None

      Just look at the Random implementations offered by commons-math. Those toys might be better than our current toy (java.util.Random):
      http://commons.apache.org/proper/commons-math/javadocs/api-3.2/org/apache/commons/math3/random/RandomGenerator.html

      AbstractRandomGenerator, AbstractWell, BitsStreamGenerator, ISAACRandom, JDKRandomGenerator, MersenneTwister, RandomAdaptor, SynchronizedRandomGenerator, Well1024a, Well19937a, Well19937c, Well44497a, Well44497b, Well512a

      JDKRandomGenerator should stay the default.

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: