randt 1.1.2 copy "randt: ^1.1.2" to clipboard
randt: ^1.1.2 copied to clipboard

A starting point for Dart libraries or applications.

License: MIT GitHub Issues GitHub Contributors made-with-dart GitHub Forks GitHub Stars

Randt #

Randt library for Dart...

Description #

Use Randt to get a random integer from a list, generate random integer in a specific range and generate random string's of any length.

Usage #

import 'package:randt/randt.dart';

void main() {
  getRandomString(30); //generate a random string with a specific length
  print(randint(my_nums)); //get a random integer from a list
  print(randstr(languages)); //get a random string from a list
  print(randrange(1, 1000)); // get a random number from a specific range of numbers
}

Note #

When using randrange() function, you will need to set the maximum integer increased by one. For example We want to get a random integer between 0 and 99, now we'll need to use it like this:

randrange(0, 100)

Cuz, the maximum number will be excluded.

Author #

Tahsin Ahmed
tahsin-npx

0
likes
110
pub points
0%
popularity

Publisher

verified publishertahsin-npx.ninja

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on randt