public float[] getRandomWeights(boolean excitatory, int size) {
        float[] weights = new float[size];
        for (int i = 0; i < size; i++) {
            if (excitatory) {
                weights[i] = random(0.5f);
            } else {
                weights[i] = -random(1f);
            }
        }
        return weights;
    }