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

◆ RandomBool()

static bool Math::RandomBool ( )
inlinestaticprivate

Returns a random bool .

Возвращает
bool - Random bool either 0 or 1
Print( Math.RandomBool() );
Print( Math.RandomBool() );
Print( Math.RandomBool() );
>> true
>> true
>> false
proto void Print(void var)
Prints content of variable to console/log.
void Math()
Определения EnMath.c:8

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

74 {
75 return RandomIntInclusive(0,1);
76 }
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Определения EnMath.c:54

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

Используется в TickState().