select a random number between 2 numbers unitry code example
Example: random selection 2 numbers unity
float angle = Random.Range(0.0F, 1.0F) < 0.5F ? 90.0F : -90.0F;
float angle = Random.Range(0.0F, 1.0F) < 0.5F ? 90.0F : -90.0F;