unity how to choose 50 % code example Example: random selection 2 numbers unity float angle = Random.Range(0.0F, 1.0F) < 0.5F ? 90.0F : -90.0F;