I would be interested to know if there is a random boolean generator by default in the random C ++ 11 library. I use an int generator that returns 0 or 1 and then convert to bool, but I'm trying to optimize my code and think I can save. using the bool generator from the very beginning, if it exists.
source share