millermedeiros/amd-utils — Issue #9: remove "shouldSnap" from random methods and add `choice` method
Author: millermedeiros
Created: 2011-11-16 18:39:05+00:00
State: open
Labels: enhancement, feature

as @pmcelhaney [suggested](https://github.com/millermedeiros/amd-utils/pull/8#issuecomment-2765368)

```js
choice(-1,1) // 50% chance -1, 50% chance of 1 -- the same as randInt(-1,1,true)
choice(2,3,5,7) // 25% chance each of 2, 3, 5, or 7
```