Renamed randomWeights method