Random generator helper for Dart
Chance Dart is a free Open Source project that lets you create random strings, integers, and other things to help with tiresome tasks, especially when building automated tests or wherever else you require anything random.
Data generation is an important part of many projects especially projects that requires code generation and mocking of data.
Chance Dart is developed to deliver instant values to ensure speediness in development process and also reduce monotony.
Many more details on docs but this single library can generate random numbers, characters, strings, names, addresses, dice, and pretty much anything else.
It includes the basic building blocks for all these items and is built on top of a Mersenne Twister so it can generate these things with repeatability, if desired.
See the full docs for details on installation and usage.
- Chance Dart CLI - Use Chance on the command line.
Know a library that uses Chance that isn't here? Update the README and submit a PR!
Follow on Twitter
Please feel free to reach out to me if you have any questions or suggestions.
How to Contribute
To start making contributions please refer to
This project is licensed under the MIT License so feel free to hack away :)
Proudly written in Nigeria.
i. Naming Convention:
|Naming Convention||Effective Style||Example|
|Classes, enum types,typedefs,and type parameters,etensions||PascalCase||An example is ChanceField|
|Libraries, packages, directories, and source files, import prefixes||snake_case||An example is currency_list|
|Class members, top-level definitions, variables, parameters, and named parameters, constants||camelCase||An example is currencyList|
ii. Style Rule
- Always declare return types in your methods.
- Put required named parameters first.
- Always require non-null named parameters (@required).
- Indent your code where appropriate
(e.g Use two-space indentation.)
Thanks goes to these wonderful people (emoji key):
Mubaraq A. LAWAL
Oluwatobi D Okanlawon
This project follows the all-contributors specification. Contributions of any kind welcome!