Class RandomHelper

java.lang.Object
org.instancio.internal.RandomHelper

@InternalApi public final class RandomHelper extends Object
  • Method Details

    • resolveRandom

      public static Random resolveRandom(@Nullable @Nullable Long settingsSeed, @Nullable @Nullable Long withSeed)
      Precedence of supplied seed values.
      1. withSeed(long)
      2. withSettings(Settings)
      3. @WithSettings Settings
      4. @Seed(long)
      5. instancio.properties
      6. random seed
      Parameters:
      settingsSeed - seed from Settings
      withSeed - seed from withSeed()
      Returns:
      random instance resolved using the above precedence rules