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

outdated

Simple library for generating random ascii strings.

example/random_string_example.dart

// Copyright (c) 2016, Damon Douglas. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:random_string/random_string.dart';

main() {
  print(randomBetween(10, 20)); // some integer between 10 and 20
  print(randomNumeric(4)); // sequence of 4 random numbers i.e. 3259
  print(randomString(10)); // random sequence of 10 characters i.e. e~f93(4l-
  print(randomAlpha(5)); // random sequence of 5 alpha characters i.e. aRztC
  print(randomAlphaNumeric(
      10)); // random sequence of 10 alpha numeric i.e. aRztC1y32B
}
176
likes
30
pub points
98%
popularity

Publisher

unverified uploader

Simple library for generating random ascii strings.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

More

Packages that depend on random_string