Interface NearbyRandom

    • Method Detail

      • nextInt

        int nextInt​(Random random,
                    int nearbySize)
        random - never null
        nearbySize - never negative. The number of available values to select from. Normally this is the size of the value range for a non-chained variable and the size of the value range (= size of the entity list) minus 1 for a chained variable.
        0 <= x < nearbySize
      • getOverallSizeMaximum

        int getOverallSizeMaximum()
        Used to limit the RAM memory size of the nearby distance matrix.
        one more than the maximum number that nextInt(Random, int) can return, Integer.MAX_VALUE if there is none