Content


NTL
Core
CFunctionRand

CFunctionRand


Class provides implementation of the rand(min, max) function which return random integer value in min..max range. It is being used by expression runners.

You can find more information in comments below. Overrided methods can be found in corresponding base class or interface.

class CFunctionRand :public CFunction
{
public:
    // IFunction methods 
    bool Run() override;

    CFunctionRand(IErrorListener *error_listener, IFunction *operand1, IFunction *operand2);
};
Namespace: nitisa::script
Include: Nitisa/Modules/Script/Functions/General/FunctionRand.h