Go to the source code of this file.
Functions | |
void | FixedRandom (uint64_t seed) |
uint32_t | Random () |
uint32_t | Random (uint32_t iRange) |
uint32_t | UnsyncedRandom () |
uint32_t | UnsyncedRandom (uint32_t iRange) |
uint32_t | SeededRandom (uint64_t iSeed, uint32_t iRange) |
Variables | |
int | RandomCount = 0 |
void FixedRandom | ( | uint64_t | seed | ) |
Definition at line 37 of file C4Random.cpp.
Referenced by c4_random_handle_seed(), C4Game::FixRandom(), and main().
uint32_t Random | ( | ) |
Definition at line 43 of file C4Random.cpp.
Referenced by C4MapScriptAlgoRndChecker::C4MapScriptAlgoRndChecker(), C4MapScriptAlgoTurbulence::C4MapScriptAlgoTurbulence(), C4PXSSystem::Cast(), C4Game::CastObjects(), C4SortObjectRandom::CompareGetValue(), C4MapCreator::Create(), C4ObjectInfoCore::Default(), C4Landscape::DrawChunks(), C4MapCreator::DrawLayer(), C4SVal::Evaluate(), C4MCOverlay::Evaluate(), C4MassMover::Execute(), C4PXS::Execute(), C4MapScriptLayer::FindPos(), C4Command::Get(), C4Landscape::Init(), InitCoreFunctionMap(), C4Game::InitInEarth(), C4Game::InitVegetation(), C4Landscape::InsertDeadMaterial(), C4Game::LoadScenarioSection(), C4MaterialMap::mrfCorrode(), mrfInsertCheck(), C4MaterialMap::mrfPoof(), ObjectActionThrow(), C4Game::PlaceAnimal(), C4Game::PlaceInEarth(), C4Player::PlaceReadyCrew(), C4Player::PlaceReadyMaterial(), C4Player::PlaceReadyVehic(), and C4Player::ScenarioInit().
uint32_t Random | ( | uint32_t | iRange | ) |
Definition at line 50 of file C4Random.cpp.
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 | iRange | ) |
Definition at line 63 of file C4Random.cpp.
int RandomCount = 0 |
Definition at line 27 of file C4Random.cpp.
Referenced by RecordRandom().