chance 1.0.0+1

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';

final chance = Chance();

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

4
likes
90
pub points
55%
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