Interface BiasedToBottomInt

All Superinterfaces:
Comparable<ValueProvider>, IntProvider, ValueProvider, Wrapper

@NullMarked @Internal public interface BiasedToBottomInt extends IntProvider
A provider that is similar to a UniformInt, but has a bias toward IntProvider.minInclusive(). Internally, it is min + random(random(max - min + 1) + 1).
Since:
3.0.0
See Also:
  • Method Details

    • toBuilder

      @AsOf("3.0.0") default BiasedToBottomInt.Builder toBuilder()
      Creates a new builder from this provider.
      Returns:
      a new builder
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static BiasedToBottomInt of(int min, int max)
      Creates a new biased to bottom int provider.
      Parameters:
      min - the minimum value
      max - the maximum value
      Returns:
      the biased to bottom int provider
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static BiasedToBottomInt.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0