chance 3.0.0
chance: ^3.0.0 copied to clipboard
A minimalist collection of random number generator functions
3.0.0 #
BREAKING #
This is basically a complete rewrite and not compatible to the old interface at all.
Changes #
- Simplify everything
- Replace ambiguously optional min/max named parameters with required positional ones
- Drop minMax parameter
- Add new functions
- randomItem
- randomItemOrNull
- Update sdk constraints
2.1.0 #
- Add null safety
2.0.0 #
- Breaking: Chance class is now static and no longer needs to be instantiated
- Add example
1.0.0+1 #
- Fix more hints
1.0.0 #
- Fix hints
- Update meta data
0.9.1 #
- Update author information
0.9.0 #
- Move repository from Github to Gitlab
- Minor refactoring
0.1.4 #
- Add
minMax
parameter tointeger
andfloating
methods: So instead ofinteger(min: -value, max: value);
you may now writeinteger(minMax: value);
orinteger(minMax: -value);
- Minor refactoring
0.1.3 #
- Fix typo in exception message
- Minor refactoring
0.1.2 #
- Add boolean method
0.1.1 #
- Add some documentation
- Add exceptions if
min
argument is provided withoutmax
0.1.0 #
Initial version