Comment by thih9

5 days ago

Feature request: allow specifying the probability distribution. E.g.: ‘~’: normal, ‘_’: uniform, etc.

I think they should be functions: G(50, 1) for a Gaussian with µ=50, σ=1; N(3) for a negative exponential with λ=3, U(0, 1) for a uniform distribution between 0 and 1, UI(1, 6) for an uniform integer distribution from 1 to 6, etc. Seems much more flexible, and easier to remember.

Not having this feature is a feature—they mention this.

  • Not really, or at least not permanently; uniform distribution is mentioned in a github changelog, perhaps it’s an upcoming feature:

    > 0.4.0

    > BRAKING: x~y (read: range from x to y) now means "flat distribution from x to y". Every value between x and y is as likely to be emitted.

    > For normal distribution, you can now use x+-d, which puts the mean at x, and the 95% (2 sigma) bounds at distance d from x.

    https://github.com/filiph/unsure/blob/master/CHANGELOG.md#04...