chance 2.0.0 copy "chance: ^2.0.0" to clipboard
chance: ^2.0.0 copied to clipboard

outdated

A minimalist generator of random numbers - inspired by chance.js

example/main.dart

import 'package:chance/chance.dart';

void main() {
  int randomInteger = Chance.integer(min: 3, max: 12);

  double randomDouble = Chance.floating(min: 3, max: 12);

  bool randomBool = Chance.boolean(likelihood: 30);

  print('Random integer: $randomInteger\n'
      'Random double: $randomDouble\n'
      'Random boolean: $randomBool');
}
10
likes
0
pub points
51%
popularity

Publisher

verified publishervimuser.com

A minimalist generator of random numbers - inspired by chance.js

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on chance