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

◆ RandomFloat01()

static float Math::RandomFloat01 ( )
inlinestaticprivate

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

Возвращает
float - Random number in range 0.0 .. 1.0
Print( Math.RandomFloat01() ); // 0.0 .. 1.0
>> 0.3
>> 1.0
proto void Print(void var)
Prints content of variable to console/log.
void Math()
Определения EnMath.c:8

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

127 {
128 return RandomFloatInclusive(0, 1);
129 }
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Определения EnMath.c:106

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

Используется в AgentBase::AutoinfectCheck(), AreaExposureMdfr::BleedingSourceCreateCheck(), ItemBase::CheckRainTick(), ChooseAttack(), CreateParticle(), PluginBase::DetermineChanceToTransmit(), ManBase::GetBloodyHandsPenaltyAgents(), GetRandomizedPosition(), GetRandomPos(), PluginBase::GiveWormsToPlayer(), GrowthTimerTick(), Edible_Base::HandleFoodStageChangeAgents(), AreaExposureMdfr::OnTick(), BrainDiseaseMdfr::OnTick(), CommonColdMdfr::OnTick(), HeavyMetalPhase2Mdfr::OnTick(), InfluenzaMdfr::OnTick(), PneumoniaMdfr::OnTick(), PoisoningMdfr::OnTick(), Edible_Base::ProcessDecay(), ManBase::ProcessFeetDamageServer(), ManBase::ProcessHandDamage(), BleedingSourcesManagerBase::ProcessHit(), ScriptedWidgetEventHandler::RandomizePageIndex(), BleedingSourcesManagerBase::RemoveBleedingSource(), CatchingResultBasic::RollChance(), ManBase::SpreadAgentsEx() и Managed::Update().