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

outdated

Random generator for Dart inspired by chancejs

chance #

A random generator for Dart. Inspired by chancejs.

Currently has only basic capabilities. Feel free to contribute.

Usage #

import 'package:chance/chance.dart';

final chance = new Chance();

int randomInteger = chance.integer(min: 3, max: 12);

double randomDouble = chance.floating(min: 3.0, max: 12.0);

bool randomBool = chance.boolean(likelihood: 30.0);

Documentation #

https://pub.dartlang.org/documentation/chance/

License #

This project is licensed under the MIT License - see the LICENSE file for details

10
likes
20
points
73
downloads

Publisher

verified publishervimuser.com

Weekly Downloads

Random generator for Dart inspired by chancejs

Homepage

License

MIT (license)

More

Packages that depend on chance