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;