random_string 2.3.1 copy "random_string: ^2.3.1" to clipboard
random_string: ^2.3.1 copied to clipboard

Simple library for generating random ascii strings by default using Random from 'dart:math'.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add random_string
copied to clipboard

With Flutter:

 $ flutter pub add random_string
copied to clipboard

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  random_string: ^2.3.1
copied to clipboard

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:random_string/random_string.dart';
copied to clipboard
188
likes
160
points
1.46M
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.11 - 2025.03.26

Simple library for generating random ascii strings by default using Random from 'dart:math'.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on random_string