Random.Range will return an integer if both min and max are integers. Random.Range(0,2) will return either one or zero. You could use it like this:
Boolean boolValue = (Random.Range(0, 2) == 0);
if(boolValue == true){
Debug.Log("It's true!");
} else{
Debug.Log("It's false!");
}