Added randomization on A2 and put change signal in function.