When there are ties (e.g. for discrete parameters), the rank is currently drawn stochastically among the ties.

calculate_ranks_draws_matrix(params, dm)

## Arguments

params a vector of values to check draws_matrix of the fit (assumed to be already thinned if that was necessary)