Randomizes all weights before allocating them.