- spheres[i].setR(float(AleaTools::uniformeAB(20, this->w / 10 - 1)));
- spheres[i].setCentre(float3 {
- float(AleaTools::uniformeAB(bord, this->w - bord)),
- float(AleaTools::uniformeAB(bord, this->h - bord)),
- float(AleaTools::uniformeAB(10, 2.0 * this->w))
- });
- spheres[i].setHue(float(AleaTools::uniformeAB(0, 1))
+ spheres[i].setR(float(this->alea.uniformeAB(20, this->w / 10 - 1)));
+
+ cpu::float3 centre
+ {
+ float(this->alea.uniformeAB(double(bord), double(this->w - bord))),
+ float(this->alea.uniformeAB(double(bord), double(this->h - bord))),
+ float(this->alea.uniformeAB(10.0, 2.0 * this->w))
+ };
+
+ spheres[i].setCentre(centre);
+ spheres[i].setHueInitial(float(this->alea.uniformeAB(0.0, 1.0)));