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

◆ RandomFloat()

static proto float Math::RandomFloat ( float min,
float max )
staticprivate

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

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

Используется в Grenade_Base::ActivateRandomTime(), AdvanceState(), ActionPushCarCB::ApplyForce(), Hit_MeatBones::BloodSplatGround(), EffBulletImpactBase::CalculateStoppingForce(), CGame::CloseCombatEffects(), CreateOrgan(), StaminaHandler::DepleteStamina(), RecipeBase::Do(), ItemBase::DoMeasurement(), ManBase::DropItem(), InventoryItemSuper::EEKilled(), Apple::EEOnCECreate(), BoatScript::EEOnCECreate(), Bottle_Base::EEOnCECreate(), EEOnCECreate(), GreenBellPepper::EEOnCECreate(), Pear::EEOnCECreate(), Plum::EEOnCECreate(), Potato::EEOnCECreate(), Tomato::EEOnCECreate(), Zucchini::EEOnCECreate(), EOnPostSimulate(), InventoryItem::ExplodeAmmo(), EntityLightSource::HandleDancingShadows(), EntityLightSource::HandleFlickering(), EnochData::Init(), SakhalData::Init(), WorldData::Init(), KuruShake::KuruShake(), LeakFluid(), ActionWringClothes::OnFinishProgressServer(), BrainDiseaseMdfr::OnTick(), SymptomBase::OnUpdateClient(), MiscEffects::PlayVegetationCollideParticles(), GeyserTrigger::RandomizeMouthPos(), Particle::RandomizeOrientation(), ParticleSource::RandomizeOrientation(), GameInventory::SetGroundPosByOwnerBounds(), DeveloperTeleport::SetPlayerPosition(), Particle::SetWiggle(), SpawnDecal(), FlammableBase::StandUp(), ThrowAllItemsInInventory(), CameraShake::Update() и SakhalData::WeatherOnBeforeChange().