fixed random weights generation