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