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.

Related tags

Templates dart flutter
Overview

Chance Dart

All Contributors

docs.page

Random generator helper for Dart

HomepageDocumentation

awesomeness style: very good analysis

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

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
Mubaraq A. LAWAL

💻
Peter Nathaniel
Peter Nathaniel

💻
Ayotomide
Ayotomide

💻
Jamiu Okanlawon
Jamiu Okanlawon

💻
Yusuf Umar
Yusuf Umar

💻
Tamunorth
Tamunorth

💻
Caleb Jesusegun
Caleb Jesusegun

💻
Oluwatobi D Okanlawon
Oluwatobi D Okanlawon

💻
Mariam Hamzat
Mariam Hamzat

💻
Habeeb-marcus
Habeeb-marcus

💻
0xfc2f
0xfc2f

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Comments
  • fix: fix floating numbers generator (#259)

    fix: fix floating numbers generator (#259)

    This fixes #259

    Status

    READY/IN DEVELOPMENT/HOLD

    Description

    • fix: fixed the floating number generator.
    • feat: added min value feature for the integer generator.

    Type of Change

    • [x] ✨ New feature (non-breaking change which adds functionality)
    • [x] 🛠️ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [ ] ✅ Build configuration change
    • [ ] 📝 Documentation
    • [ ] 🗑️ Chore
    opened by Abdulrasheed1729 3
  • hour has not yet been implemented

    hour has not yet been implemented

    /// Proposed [usage]
     import 'chance_dart/chance_dart.dart as chance;
    
     This should generate random hours. range from 0 - 999
     chance.hour();
    
     This should generate random hours. range from 0 - max value entered
     chance.hour(max: 24);
     /// Sample return value
     => 3
    
    bug enhancement good first issue 
    opened by Yczar 3
  • docs: time

    docs: time

    Status

    READY

    Description

    I wrote the documentation for the time feature:

    • am/Pm
    • date
    • hour
    • millisecond
    • minute
    • month
    • second
    • timeStamp
    • weekday

    Type of Change

    documentation

    • [ ] ✨ New feature (non-breaking change which adds functionality)
    • [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [ ] ✅ Build configuration change
    • [x] 📝 Documentation
    • [ ] 🗑️ Chore
    opened by Habeeb-marcus 2
  • fix: Year method in the time feature

    fix: Year method in the time feature

    Description

    The year method returns a value lesser than the default min year value of 1701.

    Steps To Reproduce

    1. Make use of the year method without passing any max value.

    Expected Behavior The return year value should not be lesser than 1701

    Screenshots

    Screenshot 2022-11-26 at 09 13 11

    Additional Context

    Add any other context about the problem here.

    bug 
    opened by Habeeb-marcus 1
  • chore(deps): bump actions/github-script from 5 to 6

    chore(deps): bump actions/github-script from 5 to 6

    Bumps actions/github-script from 5 to 6.

    Release notes

    Sourced from actions/github-script's releases.

    v6.0.0

    What's Changed

    Breaking Changes

    With the update to Node 16 in #235, all scripts will now be run with Node 16 rather than Node 12.

    New Contributors

    Full Changelog: https://github.com/actions/github-script/compare/v5...v6.0.0

    v5.1.1

    What's Changed

    Full Changelog: https://github.com/actions/github-script/compare/v5.1.0...v5.1.1

    v5.1.0

    What's Changed

    New Contributors

    Full Changelog: https://github.com/actions/github-script/compare/v5.0.0...v5.1.0

    Commits
    • d556fea Merge pull request #300 from actions/joshmgross/v6.3.3
    • 01fde8b Update version to 6.3.3
    • 633e9fd Merge pull request #279 from nineinchnick/update-glob
    • ee124b1 Update dist
    • ca24d5f Update @actions/glob license version
    • c09747e Merge branch 'main' into update-glob
    • 1005277 Merge pull request #299 from actions/joshmgross/v6.3.2
    • 085a775 Bump version to 6.3.2
    • 6871f0f Merge pull request #295 from rentziass/rentziass/update-actions-core
    • 7ed7182 Update @​actions/core to 1.10.0
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies github_actions 
    opened by dependabot[bot] 0
  • docs: fix time configuration

    docs: fix time configuration

    Status

    READY

    Description

    Added the configuration for the time documentation to the docs config

    Type of Change

    • [ ] ✨ New feature (non-breaking change which adds functionality)
    • [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [ ] ✅ Build configuration change
    • [x] 📝 Documentation
    • [ ] 🗑️ Chore
    opened by Yczar 0
  • chore: readme-update

    chore: readme-update

    Status

    READY

    Description

    Type of Change

    • [ ] ✨ New feature (non-breaking change which adds functionality)
    • [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [ ] ✅ Build configuration change
    • [ ] 📝 Documentation
    • [x] 🗑️ Chore
    opened by Yczar 0
  • feat: tool

    feat: tool

    Status

    READY

    Description

    Type of Change

    • [ ] ✨ New feature (non-breaking change which adds functionality)
    • [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [ ] ✅ Build configuration change
    • [ ] 📝 Documentation
    • [ x] 🗑️ Chore
    opened by Yczar 0
  • feat: refactor

    feat: refactor

    Status

    READY

    Description

    I refactored the folders by adding the packages into the packages folder.

    Type of Change

    • [ ] ✨ New feature (non-breaking change which adds functionality)
    • [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [ ] ✅ Build configuration change
    • [ ] 📝 Documentation
    • [x] 🗑️ Chore
    opened by Yczar 0
Releases(0.0.1+1)
  • 0.0.1+1(Nov 28, 2022)

    What's Changed

    • docs: add Habeeb-marcus as a contributor for code by @allcontributors in https://github.com/Yczar/chance-dart/pull/257
    • docs: time by @Habeeb-marcus in https://github.com/Yczar/chance-dart/pull/256
    • docs: fix time configuration by @Yczar in https://github.com/Yczar/chance-dart/pull/258
    • docs: add Abdulrasheed1729 as a contributor for code by @allcontributors in https://github.com/Yczar/chance-dart/pull/261
    • fix: fix floating numbers generator (#259) by @Abdulrasheed1729 in https://github.com/Yczar/chance-dart/pull/260

    New Contributors

    • @Habeeb-marcus made their first contribution in https://github.com/Yczar/chance-dart/pull/256
    • @Abdulrasheed1729 made their first contribution in https://github.com/Yczar/chance-dart/pull/260

    Full Changelog: https://github.com/Yczar/chance-dart/compare/0.0.1...0.0.1+1

    Source code(tar.gz)
    Source code(zip)
  • v0.0.4-beta(Nov 25, 2022)

    What's Changed

    • test: test written for hour impl by @OokanNumber1 in https://github.com/Yczar/chance-dart/pull/238
    • test: write test for date by @Sir-Nath in https://github.com/Yczar/chance-dart/pull/239
    • Chore/cleanup 0.0.2 by @Yczar in https://github.com/Yczar/chance-dart/pull/241
    • fix: cleanup by @Yczar in https://github.com/Yczar/chance-dart/pull/242
    • feat:/updated readme and contributing.mdx by @mariamadebolahamzat in https://github.com/Yczar/chance-dart/pull/243
    • docs: add mariamadebolahamzat as a contributor for code by @allcontributors in https://github.com/Yczar/chance-dart/pull/244
    • docs: person by @Yczar in https://github.com/Yczar/chance-dart/pull/246
    • docs: text by @Yczar in https://github.com/Yczar/chance-dart/pull/247
    • docs: uuid by @Yczar in https://github.com/Yczar/chance-dart/pull/248
    • docs: miscellaneous by @Yczar in https://github.com/Yczar/chance-dart/pull/249
    • docs: thing by @Yczar in https://github.com/Yczar/chance-dart/pull/250
    • docs: time by @Yczar in https://github.com/Yczar/chance-dart/pull/251
    • feat: actions by @Yczar in https://github.com/Yczar/chance-dart/pull/252
    • feat: refactor by @Yczar in https://github.com/Yczar/chance-dart/pull/253
    • feat: tool by @Yczar in https://github.com/Yczar/chance-dart/pull/254

    New Contributors

    • @mariamadebolahamzat made their first contribution in https://github.com/Yczar/chance-dart/pull/243

    Full Changelog: https://github.com/Yczar/chance-dart/compare/v0.0.3-beta...v0.0.4-beta

    Source code(tar.gz)
    Source code(zip)
  • 0.0.1-pre-release(Nov 25, 2022)

    What's Changed

    • test: test written for hour impl by @OokanNumber1 in https://github.com/Yczar/chance-dart/pull/238
    • test: write test for date by @Sir-Nath in https://github.com/Yczar/chance-dart/pull/239
    • Chore/cleanup 0.0.2 by @Yczar in https://github.com/Yczar/chance-dart/pull/241
    • fix: cleanup by @Yczar in https://github.com/Yczar/chance-dart/pull/242
    • feat:/updated readme and contributing.mdx by @mariamadebolahamzat in https://github.com/Yczar/chance-dart/pull/243
    • docs: add mariamadebolahamzat as a contributor for code by @allcontributors in https://github.com/Yczar/chance-dart/pull/244
    • docs: person by @Yczar in https://github.com/Yczar/chance-dart/pull/246
    • docs: text by @Yczar in https://github.com/Yczar/chance-dart/pull/247
    • docs: uuid by @Yczar in https://github.com/Yczar/chance-dart/pull/248
    • docs: miscellaneous by @Yczar in https://github.com/Yczar/chance-dart/pull/249
    • docs: thing by @Yczar in https://github.com/Yczar/chance-dart/pull/250
    • docs: time by @Yczar in https://github.com/Yczar/chance-dart/pull/251
    • feat: actions by @Yczar in https://github.com/Yczar/chance-dart/pull/252
    • feat: refactor by @Yczar in https://github.com/Yczar/chance-dart/pull/253
    • feat: tool by @Yczar in https://github.com/Yczar/chance-dart/pull/254

    New Contributors

    • @mariamadebolahamzat made their first contribution in https://github.com/Yczar/chance-dart/pull/243

    Full Changelog: https://github.com/Yczar/chance-dart/compare/v0.0.3-beta...0.0.1-pre-release

    Source code(tar.gz)
    Source code(zip)
  • 0.0.1(Nov 25, 2022)

    What's Changed

    • chore: readme-update by @Yczar in https://github.com/Yczar/chance-dart/pull/255

    Full Changelog: https://github.com/Yczar/chance-dart/compare/0.0.1-pre-release...0.0.1

    Source code(tar.gz)
    Source code(zip)
  • v0.0.3-beta(Nov 16, 2022)

Owner
Ayotomide
Flutter & Dart Daemon
Ayotomide
Yukino lets you read manga or stream anime ad-free from multiple sources for free! Available for Windows, Linux, MacOS and Android.

Yukino Yukino lets you read manga or stream anime ad-free from multiple sources. The project's name "Yukino" meaning "Snow" named after the character

Yukino 204 Jan 6, 2023
The aim of this project is to assist flutter developers, especially juniors to create reusable widget faster in flutter.

FLUTTER WIDGET BUILDER A widget builder for flutter Explore the docs » View Demo · Report Bug · Request Feature Table of Contents About The Project Bu

null 10 Oct 27, 2022
My collection of bricks to help you build projects faster or nothing else will 😆

My collection of bricks to help you build projects faster or nothing else will ?? Bricks ?? Brick Description Version annoying_analysis_options A bric

Prince Nna 4 Aug 20, 2022
This is the UI of Furniture App made using Flutter SDK. The original design was made by someone else in dribble and I tried to create the screens of that UI using Flutter

Furniture App - Responsive Flutter UI Watch it on YouTube Responsive UI Fetch Data From API Custom Loading Indicator Packages we are using: flutter_sv

null 6 Dec 3, 2022
A beautiful, secure and simple authenticator app that supports multiple protocols and services. Free and open source. Written in Flutter and Dart.

OpenAuth A beautiful, secure and simple authenticator app that supports multiple protocols and services. Free and open source. Written in Flutter and

Isaiah Collins Abetong 31 Oct 5, 2022
💖A free IoT (Internet of Things) platform and private cloud

??A free IoT (Internet of Things) platform and private cloud

Open IoT Hub(云易连) 422 Nov 30, 2022
SeizeYourSpace - An App to capture details about folks interested in joining Publicis Sapient. Especially useful at events!

photo_job A simple app to take in candidate applications at a Conference Booth. This simplifies the work for a recruiter and eliminates the paper work

Pavan Podila 4 Jul 11, 2022
Open-source, cross-platform, hassle-free file sharing with AES-256 encryption made with Flutter & Dart.

Odin ⚡ Open source easy file sharing for everyone. ⚡ Cross-platform hassle-free file sharing with AES-256 encryption made with Flutter & Dart. Getting

Odin 111 Dec 22, 2022
Portarius is a free, open-source, cross-platform mobile application that allows you to manage your Portainer sessions.

Portarius [Latin: Porta/Door Arius/Keeper] Features User management See running/stopped containers (and also start/stop and restart them) See containe

Zbe 54 Jan 7, 2023
The official open source app of the GSDCs of Benin. Feel free to contribute and make this app great for every members

GDSC-Events-Benin The official open source app of the GSDCs of Benin. Feel free to contribute and make this app great for every members ?? Contributor

Junior Medehou 2 Feb 4, 2022
Free and open source multi-platform novel reader.

Nacht Free and open source multi-platform novel reader.

Nacht 4 Dec 29, 2022
Keyviz is a free and open-source tool to visualize your keystrokes ⌨️ in real-time.

Keyviz Keyviz is a free and open-source software to visualize your ⌨️ keystrokes in realtime! Let your audience know what handy shortcuts/keys you're

Rahul Mula 1.9k Jan 2, 2023
This repository contains Collection of UIs made using Flutter. Original Design of all the UIs were created by someone else. I tried to recreate those UIs using Flutter

Flutter-UIs-Collection This repository contains Collection of UIs made using Flutter. Original Design of all the UIs were created by someone else. I t

Mohak Gupta 45 Nov 26, 2022
Build different UIs for Android, iOS, Web, Desktop, Wear, TV etc without the if/else checks in your widgets.

platform_widget_mixin Plugin to decouple widgets based on various platform properties. Features Build different UIs for Android, iOS, Web, Desktop, We

Rahul Kumar 6 Nov 17, 2022
Free & Open-Source To-Do App. Built Using Flutter

TaskFlow ⭐️ Free & Open Source To-Do App ⭐️ Features The whole app is FREE, you can add unlimited number of tasks and there are NO ADS. The app is FAS

Imira Randeniya 4 Sep 11, 2022
An ad-free, open-source bus timing app for bus services in Singapore, with goodies.

SGBuskeeper An ad-free, open-source bus timing app for bus services in Singapore, with goodies. Written in Dart, using Flutter. Planned Featureset Fav

Mark J. 0 Dec 17, 2021
A free open source app made by flutter to learn programming

learnwithme A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if t

Ammar Sallah 8 Oct 31, 2022