These are chat archives for Cardiff-University-Code-Academy/LionelRourke

10th
Mar 2015
Ryan Gibbs
@8bitJunk
Mar 10 2015 10:21
public static ArrayList<Double> generate(int arraySize) {
ArrayList<Double> results = new ArrayList<Double>();
Random r = new Random();
Double minValue = 1.00;
Double maxValue = 100.00;
    for(int i=0; i < arraySize; i++) {
        double randomValue = minValue + (maxValue - minValue) * r.nextDouble();
        results.add(randomValue);
    }

    return results;
}
Ryan Gibbs
@8bitJunk
Mar 10 2015 10:32