changes visibility of weighting boxes based on uniformRandom attribute