I'm designing a circuit where I'm using instrumentation amplifier to amplify my input voltage
The formula for the amplifier is $$\frac{V_{\text{out}}}{V_{\text{in}}} = \left(1 + 2\frac{R_1}{R_{\text{gain}}}\right)\frac{R_3}{R_2}$$
In the circuit, there are an overall 7 resistors but only one controls the gain. From what I can find online, to find the gain of the amplifier what they did is they set all 6 resistors equal to each other and hence only one variable is left.
What I don't understand is why did they all equal to each other? What determines the value of the resistors? Why didn't they randomise the resistors and if they did what effect would it have on the amplifier?