HF RL Explorer

The igraph library lacks a dedicated random Boolean generator. All basic types except Boolean have uniform…

The igraph library lacks a dedicated random Boolean generator. All basic types except Boolean have uniform…: a task in LegoFlow-SWE (Harbor dataset). Add a macro RNG BOOL() that returns a random Boolean value ( igraph bool t ). It should provide a simple, uniform way to “flip a coin” and maintain…

The task

Add a macro `RNG_BOOL()` that returns a random Boolean value (`igraph_bool_t`). It should provide a simple, uniform way to “flip a coin” and maintain consistency with the existing RNG macros (`RNG_UNIF01()`, `RNG_POIS()`, `RNG_GEOM()`, `RNG_BINOM()`, `RNG_EXP()`). The macro should be more efficient than the manual…

Part of Lego-X/LegoFlow-SWE.