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

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

10
likes
140
pub points
47%
popularity

Publisher

verified publishervimuser.com

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on chance