Class IntDomainRandomBound

  • All Implemented Interfaces:
    IntValueSelector

    public class IntDomainRandomBound
    extends Object
    implements IntValueSelector
    Selects randomly between the lower and the upper bound of the variable
    Since:
    2 april 2014
    Author:
    Jean-Guillaume Fages, Charles Prud'homme
    • Constructor Detail

      • IntDomainRandomBound

        public IntDomainRandomBound​(long seed)
    • Method Detail

      • selectValue

        public int selectValue​(IntVar var)
        Selects and returns the value to constrained chosen variable with. The chosen value must belong to the domain of variable.
        Specified by:
        selectValue in interface IntValueSelector
        Returns:
        the value, based on the domain of variable