public NeuronLayer(int inputs, int outputs, Random random) {

        weights = new double[inputs][outputs];
        oldAdjustments = new double[weights.length][weights[0].length];

        for (int y = 0; y < outputs; y++) {
            
            for (int x = 0; x < inputs; x++) {
                
                weights[x][y] = random.nextDouble() - 0.5;
            }
        }
    }