Interface UniformInt

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

@NullMarked @AsOf("3.0.0") public interface UniformInt extends IntProvider
Uniform int providers sample a range between the inclusive values and return a single, random integer from the range.
Since:
3.0.0
See Also:
  • Method Details

    • toBuilder

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

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

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