Chance Dart
Random generator helper for Dart
Overview
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.
Usage
See the full docs for details on installation and usage.
Dependent tools
- 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!
Author
Babalola Ayotomide(Czar)
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 Contribution Docs
.
This project is licensed under the MIT License so feel free to hack away :)
Proudly written in Nigeria.
Code Style
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.)
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Mubaraq A. LAWAL 💻 |
Peter Nathaniel 💻 |
Ayotomide 💻 |
Jamiu Okanlawon 💻 |
Yusuf Umar 💻 |
Tamunorth 💻 |
Caleb Jesusegun 💻 |
Oluwatobi D Okanlawon 💻 |
Mariam Hamzat 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Libraries
- chance_dart
- core/basics/basics
- core/basics/letter/letter
- core/basics/src/boolean
- core/basics/src/character
- core/basics/src/falsy
- core/basics/src/floating
- core/basics/src/integer
- core/basics/src/letter
- core/basics/src/natural
- core/basics/src/prime
- core/basics/src/string
- core/basics/src/template
- core/basics/string/string
- core/core
- core/finance/constants/constants
- core/finance/finance
- core/finance/models/currency
- core/finance/src/cc
- core/finance/src/cc_type
- core/finance/src/cedi
- core/finance/src/currency
- core/finance/src/currency_pair
- core/finance/src/dollar
- core/finance/src/euro
- core/finance/src/exp
- core/finance/src/exp_month
- core/finance/src/exp_year
- core/finance/src/naira
- core/location/constants/addresses
- core/location/constants/countries
- core/location/constants/postals
- core/location/location
- core/location/models/address
- core/location/models/coordinate
- core/location/models/country
- core/location/src/address
- core/location/src/altitude
- core/location/src/area_code
- core/location/src/city
- core/location/src/coordinates
- core/location/src/country
- core/location/src/depth
- core/location/src/geohash
- core/location/src/latitude
- core/location/src/locale
- core/location/src/longitude
- core/location/src/phone
- core/location/src/postal
- core/location/src/postcode
- core/location/src/province
- core/location/src/state
- core/location/src/street
- core/location/src/zip
- core/miscellaneous/miscellaneous
- core/miscellaneous/src/coin
- core/miscellaneous/src/dice
- core/miscellaneous/src/guid
- core/miscellaneous/src/hash
- core/miscellaneous/src/n
- core/miscellaneous/src/normal
- core/miscellaneous/src/radio
- core/miscellaneous/src/rpg
- core/miscellaneous/src/tv
- core/miscellaneous/src/unique
- core/miscellaneous/src/weighted
- core/mobile/mobile
- core/mobile/src/uuid
- core/person/constants/users
- core/person/model/location
- core/person/model/name
- core/person/model/picture
- core/person/model/user
- core/person/person
- core/person/src/age
- core/person/src/birthday
- core/person/src/first_name
- core/person/src/full_name
- core/person/src/gender
- core/person/src/last_name
- core/person/src/person_title
- core/person/src/ssn
- core/person/src/user
- core/text/constants/sentences
- core/text/constants/syllables
- core/text/constants/words
- core/text/src/paragraph
- core/text/src/sentence
- core/text/src/syllable
- core/text/src/word
- core/text/text
- core/thing/constants/animals
- core/thing/src/animal
- core/thing/thing
- core/time/src/am_pm
- core/time/src/date
- core/time/src/hammer_time
- core/time/src/hour
- core/time/src/millisecond
- core/time/src/minute
- core/time/src/month
- core/time/src/second
- core/time/src/timestamp
- core/time/src/timezone
- core/time/src/weekday
- core/time/src/year
- core/time/time