summaryrefslogtreecommitdiff
path: root/src/JSystem/JAudio/JASInstRand.cpp
blob: 7f655377aeb15ac2d76c5410e3a4a1dca7f0b0fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//
// Generated by dtk
// Translation Unit: JASInstRand.cpp
//

#include "JSystem/JSystem.h" // IWYU pragma: keep

#include "JSystem/JAudio/JASInstRand.h"
#include "JSystem/JMath/random.h"

/* 80286B58-80286BF4       .text getY__Q28JASystem9TInstRandCFii */
f32 JASystem::TInstRand::getY(int, int) const {
    static JMath::TRandom_fast_ oRandom(0);
    f32 tmp = (oRandom.get_ufloat_1() * 2.0f - 0.9999999f);
    tmp *= field_0xc;
    return tmp + field_0x8;
}