Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shindakioku/randomer
Randomer helps to you for generate what do you need.
https://github.com/shindakioku/randomer
Last synced: 5 days ago
JSON representation
Randomer helps to you for generate what do you need.
- Host: GitHub
- URL: https://github.com/shindakioku/randomer
- Owner: shindakioku
- License: bsd-3-clause
- Created: 2018-05-19T15:24:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-19T15:33:05.000Z (over 6 years ago)
- Last Synced: 2023-08-20T22:59:35.470Z (over 1 year ago)
- Language: Dart
- Size: 1.44 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# randomer
Randomer helps to you for generate what do you need.
Created from templates made available by Stagehand under a BSD-style
[license](https://github.com/dart-lang/stagehand/blob/master/LICENSE).## Usage
A simple usage example:
```dart
import 'package:randomer/randomer.dart';main() {
print(random([true, false]));
print(random([0, 1, 2], take: 2));
print(capitalize('test test')); // Test test
print(text()); // Random text
print(text(words: 20));
print(text(join: false)); // Will return the List
print(text(text: ['a', 'b', 'c']));
}
```
Also, you can use the object for calling functions:
```dart
import 'package:randomer/randomer.dart';main() {
print(randomer.random([true, false]));
print(randomer.random([0, 1, 2], take: 2));
print(randomer.capitalize('test test')); // Test test
print(randomer.text()); // Random text
print(randomer.text(words: 20));
print(randomer.text(join: false)); // Will return the List
print(randomer.text(text: ['a', 'b', 'c']));
}
```## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://github.com/shindakioku/randomer/issues