random-boolean

wayland/esp8266-true-random/random-boolean

Generates a true or false with a 50% probability.
random-boolean
@/random-boolean
Generates a true or false with a 50% probability.
UPDpulse
Update
random-boolean
OUT
UPD
OUTboolean
Random boolean value.
To use the node in your project you should have the wayland/esp8266-true-random library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

// Tell XOD where it could download the library:
#pragma XOD require "https://github.com/marvinroger/ESP8266TrueRandom"

//Include C++ libraries
#include <ESP8266TrueRandom.h>

node {
    void evaluate(Context ctx) {
        if (isInputDirty<input_UPD>(ctx)) {
            emitValue<output_OUT>(ctx, ESP8266TrueRandom.randomBit());
        }
    }
}