added the ability to seed the weights randomly