Add support to choose random nodes