
public gameObject diamond;
void Start()
{
int randDiamond = Random.Range(0,5);
Vector3 diamondPos = transform.position;
diamondPos.y += 1f;
if(randDiamond < 1)
{
// spawn the diamond
Instantiate(diamond, diamondPos, diamond.transform.rotation);
}
// 1 2 3 4 Dont't spawn the diamond
}