select nodes randomly