I am trying to create a function s[n_] which returns a subset of $\{ 1,2,3 \dots n\}$ wherein each integer $j$ appears with probability $1/j$; ie. there is a $1/4$ chance that $4$ belongs to s[i] for $i \geq 4$.
The only way I can think of doing this is actually assembling a list of lists where sets containing, say, $4$, appear $1/4$ of the time. But certainly there is a built-in function for discrete random variables with specified probabilities? I would guess so, but I couldn't find one.