You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
496 B

package model;
import java.util.Random;
public class Alea implements GenererTemperature{
private float temperature;
private double min;
private double max;
public Alea(){
this.temperature = genererTemperature();
Random rand = new Random();
min= rand.nextDouble();
max= rand.nextDouble(min);
}
@Override
public float genererTemperature() {
Random rand = new Random();
return rand.nextFloat()+rand.nextInt();
}
}