| 847 | int return |
| 848 | */ |
| 849 | struct 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); |
nothing calls this directly
no test coverage detected