static float vary0to1(float x) { return Math.max(0f, Math.min(1f, (float) (x+random(-0.1, 0.1)))); }