chance 3.0.0 copy "chance: ^3.0.0" to clipboard
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 to integer and floating methods: So instead of integer(min: -value, max: value); you may now write integer(minMax: value); or integer(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 without max

0.1.0 #

Initial version

10
likes
0
pub points
51%
popularity

Publisher

verified publishervimuser.com

A minimalist collection of random number generator functions

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on chance