I\'m making a game in C++ and it involves filling tiles with random booleans (either yes or no) whether it is yes or no is decided by rand() % 1. It doesn\'t fe
rand() % 1
The low order bits are not very random. By using %2 you are only checking the bottom bit of the random number.
Assuming you are not needing crypto strength randomness. Then the following should be OK.
bool tile = rand() > (RAND_MAX / 2);