protected static void Randomise(double[] weights, int fanIn) { double fanInDouble = (double)fanIn; for (int i = 0; i < weights.Length; i++) { weights[i] = (random.NextDouble() - 0.5) * (4.8 / fanInDouble); } }