DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ RandomIntInclusive()

static int Math::RandomIntInclusive ( int min,
int max )
inlinestaticprivate

Returns a random int number between and min [inclusive] and max [inclusive].

Аргументы
minint Range starts [inclusive]
maxint Range ends [inclusive]
Возвращает
int - Random number in range
Print( Math.RandomIntInclusive(0, 1) ); // 0 or 1
Print( Math.RandomIntInclusive(0, 2) ); // 0, 1, 2
>> 1
>> 2
proto void Print(void var)
Prints content of variable to console/log.
void Math()
Определения EnMath.c:8

См. определение в файле EnMath.c строка 54

55 {
56 return Math.RandomInt(min, max+1);
57 }

Перекрестные ссылки Math().

Используется в AreaExposureMdfr::BleedingSourceCreateCheck(), EnochData::CalculateVolFog(), WorldData::CalculateVolFog(), EnochData::CalculateWind(), SakhalData::CalculateWind(), WorldData::CalculateWind(), DamageHands(), CAContinuousMineWood::DamagePlayersHands(), PrepareAnimal::Do(), RecipeBase::Do(), Weapon::FillChamber(), Weapon::FillInnerMagazine(), FireworksLauncher::FireworksLauncher(), AreaDamageComponentRaycasted::GetFallbackHitZone(), GetRandomizedPosition(), AreaDamageBase::GetRaycastedHitZone(), FireworksLauncherClientEvent::GetSecondaryExplosionDelay(), DayZInfected::HandleDamageHit(), HitDirectionEffectBase::Init(), CholeraMdfr::OnActivate(), ActionPackGift::OnFinishProgressServer(), OnFinishProgressServer(), TrapBase::OnServerSteppedOn(), OnSteppedOn(), CholeraMdfr::OnTick(), ToxicityMdfr::OnTick(), OnVehicleJumpOutServer(), OpenItem::OpenAndSwitch(), Edible_Base::ProcessDecay(), MissionBase::RandomArtillery(), RandomBool(), Randomize(), RandomizedDeviation(), HitDirectionImagesBase::RandomizeImageIdx(), ScriptedWidgetEventHandler::RandomizePageIndex(), CrashBase::RandomizePosition(), SelectEvent(), HitDirectionEffectBase::SetIndicatorRotation(), Weapon::SpawnAttachedMagazine(), CrashBase::SpawnRandomDeers(), HotSpringTrigger::SpawnVaporEffect(), VolcanicTrigger::SpawnVaporEffect(), EnochData::WeatherOnBeforeChange(), SakhalData::WeatherOnBeforeChange() и WorldData::WeatherOnBeforeChange().