Home
last modified time | relevance | path

Searched refs:RandSmallInt (Results 1 – 13 of 13) sorted by relevance

/dports/games/freeorion/freeorion-0.4.10.2/util/
H A DRandom.h65 FO_COMMON_API int RandSmallInt(int min, int max);
H A DRandom.cpp43 int RandSmallInt(int min, int max) in RandSmallInt() function
H A DMultiplayerCommon.cpp203 new_seed += alphanum[RandSmallInt(0, (sizeof(alphanum) - 2))]; in SetSeed()
/dports/games/freeorion/freeorion-0.4.10.2/universe/
H A DValueRefs.cpp2154 std::size_t idx = RandSmallInt(0, static_cast<int>(all_enqueued_techs.size()) - 1); in Eval()
2171 std::size_t idx = RandSmallInt(0, static_cast<int>(researchable_techs.size()) - 1); in Eval()
2187 std::size_t idx = RandSmallInt(0, static_cast<int>(complete_techs.size()) - 1); in Eval()
2207 std::size_t idx = RandSmallInt(0, static_cast<int>(sendable_techs.size()) - 1); in Eval()
2657 unsigned int idx = RandSmallInt(0, m_operands.size() - 1); in EvalImpl()
2802 unsigned int idx = RandSmallInt(0, m_operands.size() - 1); in EvalImpl()
2953 unsigned int idx = RandSmallInt(0, m_operands.size() - 1); in EvalImpl()
H A DSpecies.cpp488 int species_idx = RandSmallInt(0, static_cast<int>(m_species.size()) - 1); in RandomSpeciesName()
496 int species_idx = RandSmallInt(0, NumPlayableSpecies() - 1); in RandomPlayableSpeciesName()
H A DShip.cpp792 int monster_name_index = RandSmallInt(0, static_cast<int>(monster_names.size()) - 1); in NewMonsterName()
H A DEffects.cpp1888 int type_idx = RandSmallInt(0, max_type_idx); in Execute()
2886 int destination_idx = RandSmallInt(0, valid_locations.size() - 1); in Execute()
H A DValueRefs.h1879 unsigned int idx = RandSmallInt(0, m_operands.size() - 1); in EvalImpl()
H A DConditions.cpp692 { return RandSmallInt(0, max_plus_one - 1); } in CustomRandInt()
/dports/games/freeorion/freeorion-0.4.10.2/client/AI/
H A DAIClientApp.cpp308 rand_num = RandSmallInt(0, 99); in HandleMessage()
/dports/games/freeorion/freeorion-0.4.10.2/UI/
H A DSidePanel.cpp748 …const auto& atmosphere = it->second.atmospheres[RandSmallInt(0, it->second.atmospheres.size() - 1)… in Refresh()
1156 m_planet_graphic->SetFrameIndex(RandSmallInt(0, textures.size() - 1)); in RefreshPlanetGraphic()
/dports/games/freeorion/freeorion-0.4.10.2/Empire/
H A DEmpire.cpp1465 int ship_name_idx = RandSmallInt(0, static_cast<int>(ship_names.size()) - 1); in NewShipName()
/dports/games/freeorion/freeorion-0.4.10.2/server/
H A DServerFSM.cpp146 int empire_name_idx = RandSmallInt(0, static_cast<int>(valid_names.size()) - 1); in GenerateEmpireName()