# What are the different ways of indicating that a random variable has a specific distribution?

Recently I have seen random variable distributions described in two ways:

$$X \sim Nb(r,p) \\ X \stackrel{d}{=} Nb(r,p)$$

Both indicating that $X$ is a negative binomial random variable with $r$ successes and $p$ probability of failure. Do these mean the same things? Are there any other ways of writing this?

I've encountered "$\sim$" much more often than "$\mathop{=}^d$", possibly because it is more convenient to typeset, but your mileage may vary.
$$X\sim\mathrm{N\!B}(r,p)$$