Node::getNumberOfVertices(), generating objects at random positions