Closed dhardy closed 1 month ago
I don't really like the new name. I would prefer something like sample_*
or uniform_*
, but I guess this is too technical.
I agree that random_ratio
is misleading, but so is gen_ratio
. I think bool_from_ratio
or bool_from_prob
would also work.
CHANGELOG.md
entrySummary
This appears to be the conclusion of #1503:
Opinion
My personal feeling is that this is a poor choice. We recently renamed
rand::distributions
torand::distr
because the latter was easier to type and consistent withrand_distr
(see #1381). This achieves some level of consistency (excepting thatrandom_bool
describes its output while otherrandom*
methods describe their input), but is not concise.