note return type for createRandomNodes