ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:randbool

Table of Contents

randbool

bool randbool()

Description

Returns a random boolean value (true or false). Shorthand for random(0, 1).

Examples

if (randbool())
    a;
else
    b;
functions/randbool.txt · Last modified: 2017/06/13 17:02 by korshun