chance 2.0.0
chance: ^2.0.0

Dart native js
Flutter Android iOS web

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

chance #

A minimalist generator of random numbers. Inspired by chance.js.

It currently has only basic capabilities. Feel free to contribute.

Usage #

import 'package:chance/chance.dart';

int randomInteger = Chance.integer(min: 3, max: 12); // 5

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

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

6
likes
110
pub points
61%
popularity

Publisher

blausoft.net

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

More

Packages that depend on chance