I'm trying to do it so when I have an instantiated an item upon the game starting, it is random as to whether it actually instantiates or not. Here's the code I have so far:
public GameObject anyItem;
void Start()
{
Instantiate(anyItem, new Vector3(0, 0, 0), Quaternion.identity);
Instantiate(anyItem, new Vector3(11, 0, 0), Quaternion.identity);
}
How can I do it so these items (individually, not both together) are decided randomly as to whether they will actually be instantiated or not?