Class RandomFunction

  • All Implemented Interfaces:
    FunctionIfc

    public class RandomFunction
    extends AbstractFunction
    Random function produces a random value between 0 and 1.
    • Constructor Detail

      • RandomFunction

        public RandomFunction()
    • Method Detail

      • evaluate

        public EvaluationValue evaluate​(Expression expression,
                                        Token functionToken,
                                        EvaluationValue... parameterValues)
        Description copied from interface: FunctionIfc
        Performs the function logic and returns an evaluation result.
        Parameters:
        expression - The expression, where this function is executed. Can be used to access the expression configuration.
        functionToken - The function token from the parsed expression.
        parameterValues - The parameter values.
        Returns:
        The evaluation result in form of a EvaluationValue.