add randomness to the order in which child nodes are put on the queue

Signed-off-by: V2 <virgilverse@gmail.com>