change number of nodes and random variations