Code for randomly assigning gift exchanges, ensuring no siblings or cousins are assigned each other