MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / exec

Method exec

source/src/scriptinterpreter.cpp:849–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847int return
848*/
849struct QiFunc_rand : public QiFunc
850{
851 QiFunc_rand() : QiFunc(1, 2) {}
852 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter* inter) const override
853 {
854 long long r = random((args[0].toInteger()), args.size() > 1 ? (args[1].toInteger()) : 0);
855 inter->setLocalValue(std::string("rand_last"), r);

Callers

nothing calls this directly

Calls 1

localValueMethod · 0.80

Tested by

no test coverage detected