cpp randomize weights implemented, custom seed supported.