How to randomaly attach gun to a skeletal mesh?

well i know how to attach an object to a skeletal mesh but my problem is that i want my character to take guns randomaly like if my character have already two guns then the third gun will attach to spine.well i tried to do so with some booleans but that didn’t work