Function boolean [src]

Prototype

pub fn boolean(r: Random) bool

Parameters

r: Random

Source

pub fn boolean(r: Random) bool { return r.int(u1) != 0; }