private void SetupRandomWeights() { this.weights = new float[layerSizes.Length - 1][][]; for (int i = 0; i < weights.Length; i++) { this.weights[i] = MatrixUtils.CreateRandomMatrix2D( layerSizes[i], layerSizes[i + 1], Constants.MIN_WEIGHT, Constants.MAX_WEIGHT ); } }