public static void main(String[] args) {
// TODO Auto-generated method stub
Computer c1 = new Computer("Apple",0.0);
Computer c2 = new Computer("Dell",0.0);
Computer c3 = new Computer("联想",0.0);
Random r = new Random();
ArrayList<Double> list = new ArrayList<>();
while(list.size() < 4){
double d = (r.nextDouble())*10000;
if(d <= 10000 && d >= 4000){
list.add(d);
}
}