Can you randomly choose a Boolean's value in Unity C#. I tried random.range, but it only works with floats. Here is an example of what I'm trying to do:
Boolean = (random boolean value command)(false, true);
if(Boolean = true){
Debug.Log("It's true!")
} else{
Debug.Log("It's false!")
}
Any ideas?
if(boolean==true)
. Just use if(boolean) \$\endgroup\$ – SanSolo Oct 26 '15 at 11:41boolean = true
. \$\endgroup\$ – DubGamer87 Oct 26 '15 at 16:02