Searched refs:RandSmallInt (Results 1 – 13 of 13) sorted by relevance
/dports/games/freeorion/freeorion-0.4.10.2/util/ |
H A D | Random.h | 65 FO_COMMON_API int RandSmallInt(int min, int max);
|
H A D | Random.cpp | 43 int RandSmallInt(int min, int max) in RandSmallInt() function
|
H A D | MultiplayerCommon.cpp | 203 new_seed += alphanum[RandSmallInt(0, (sizeof(alphanum) - 2))]; in SetSeed()
|
/dports/games/freeorion/freeorion-0.4.10.2/universe/ |
H A D | ValueRefs.cpp | 2154 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 D | Species.cpp | 488 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 D | Ship.cpp | 792 int monster_name_index = RandSmallInt(0, static_cast<int>(monster_names.size()) - 1); in NewMonsterName()
|
H A D | Effects.cpp | 1888 int type_idx = RandSmallInt(0, max_type_idx); in Execute() 2886 int destination_idx = RandSmallInt(0, valid_locations.size() - 1); in Execute()
|
H A D | ValueRefs.h | 1879 unsigned int idx = RandSmallInt(0, m_operands.size() - 1); in EvalImpl()
|
H A D | Conditions.cpp | 692 { return RandSmallInt(0, max_plus_one - 1); } in CustomRandInt()
|
/dports/games/freeorion/freeorion-0.4.10.2/client/AI/ |
H A D | AIClientApp.cpp | 308 rand_num = RandSmallInt(0, 99); in HandleMessage()
|
/dports/games/freeorion/freeorion-0.4.10.2/UI/ |
H A D | SidePanel.cpp | 748 …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 D | Empire.cpp | 1465 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 D | ServerFSM.cpp | 146 int empire_name_idx = RandSmallInt(0, static_cast<int>(valid_names.size()) - 1); in GenerateEmpireName()
|