#include <cinttypes>
Go to the source code of this file.
Functions | |
void | FixedRandom (uint64_t dwSeed) |
uint32_t | Random (uint32_t iRange) |
uint32_t | UnsyncedRandom () |
uint32_t | UnsyncedRandom (uint32_t range) |
uint32_t | SeededRandom (uint64_t iSeed, uint32_t iRange) |
void | RecordRandom (uint32_t range, uint32_t val) |
Variables | |
int | RandomCount |
void FixedRandom | ( | uint64_t | dwSeed | ) |
Definition at line 37 of file C4Random.cpp.
Referenced by c4_random_handle_seed(), C4Game::FixRandom(), and main().
uint32_t Random | ( | uint32_t | iRange | ) |
Definition at line 50 of file C4Random.cpp.
void RecordRandom | ( | uint32_t | range, |
uint32_t | val | ||
) |
Definition at line 22 of file C4RandomRecord.cpp.
References AddDbgRec(), C4RCRandom::Cnt, Config, C4ConfigGeneral::DebugRec, C4Config::General, RandomCount, C4RCRandom::Range, RCT_Random, and C4RCRandom::Val.
uint32_t SeededRandom | ( | uint64_t | iSeed, |
uint32_t | iRange | ||
) |
Definition at line 69 of file C4Random.cpp.
Referenced by C4Sky::Init().
uint32_t UnsyncedRandom | ( | ) |
Definition at line 58 of file C4Random.cpp.
Referenced by C4StartupPlrPropertiesDlg::C4StartupPlrPropertiesDlg(), C4NetIOUDP::DoLoopbackTest(), GenerateRandomPlayerColor(), C4Network2ResChunkData::GetChunkToRetrieve(), C4SoundSystem::GetEffect(), C4TeamList::GetRandomSmallestTeam(), C4TeamList::GetScriptPlayerName(), C4LoaderScreen::Init(), C4NetIOUDP::InitBroadcast(), C4MusicSystem::Play(), C4MusicSystem::ScheduleWaitTime(), C4NetIOUDP::SendDirect(), C4ParticleValueProvider::Set(), C4Network2Res::StartNewLoads(), and C4TextureMap::StoreMapPalette().
uint32_t UnsyncedRandom | ( | uint32_t | range | ) |
Definition at line 63 of file C4Random.cpp.
|
extern |
Definition at line 27 of file C4Random.cpp.
Referenced by RecordRandom().