int numNodesInWay = 2 + (int)Math.round(Math.random() * 5);
int start = (int)Math.round(Math.random() * numNodes);
for (int j = 0; j < numNodesInWay;j++) {
int idx = (start + j) % numNodes;
Node n = nodes.get(idx);
w.addNode(n);
}
w.put("name", "way-"+i);
ds.addPrimitive(w);
ways.add(w);
}