Fixed FindRandomNode method