use random generator on vector insertion; allow weight reset after iterator change

use random generator on vector insertion (so that the specified seed is used)
allow weight reset after iterator change