randt 1.1.2 randt: ^1.1.2 copied to clipboard
A starting point for Dart libraries or applications.
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