What is the difference between rand and sample?

Personally I think that using StatsBase.sample for MCMC is bad style (“punning”).