summaryrefslogtreecommitdiff
path: root/src/Game/AI/Query/queryRandomChoice4.cpp
blob: 85bb52ff41d75fdbfd86c2fa420e222b24d4db7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "Game/AI/Query/queryRandomChoice4.h"
#include <evfl/query.h>
#include <random/seadGlobalRandom.h>

namespace uking::query {

RandomChoice4::RandomChoice4(const InitArg& arg) : ksys::act::ai::Query(arg) {}

RandomChoice4::~RandomChoice4() = default;

int RandomChoice4::doQuery() {
    return sead::GlobalRandom::instance()->getU32(4);
}

}  // namespace uking::query