Added createRandomNodes static method, see #4