Added another test for when the random parameter is null for generating a random boolean.
Renamed random boolean core to match its public method.