As the title says, and i’ve tried it about 20 times. Also with UnityEngine.Random.Range (1, 5) number will almost always be 1
If you want a random integer number between 1 and 2 you have to write:
UnityEngine.Random.Range(1, 3);
Check the description for Random.Range:
Returns a random integer number between min [inclusive] and max [exclusive] (Read Only).