Correct implementation of GetArrayCellRandom.