sclass RandomAndVary_Float implements RandomAndVary { float min = 0, max = 1; double varyFactor = 0.1; public Float randomInstance() { ret randomFloat(min, max); } public Float varyInstance(Float a) { ret (float) clipDouble(min, max, a+(max-min)*varyFactor); } }