added unweighted random node selection