50/50 change between two integers unity code example Example: random selection 2 numbers unity float angle = Random.Range(0.0F, 1.0F) < 0.5F ? 90.0F : -90.0F;