rand 2.0.2+2 copy "rand: ^2.0.2+2" to clipboard
rand: ^2.0.2+2 copied to clipboard

Advanced, easy-to-use random generator for Dart with simple syntax. Ideal for efficient randomness in code.

rand #

A stateful random generator with extra functionalities. To use:

print(Rand.boolean(20) ? 'head' : 'tail'); // it's a head for with 20% chance
Rand.dateTimeYear(2001, 2024) // A random 21th century [DateTime]
Rand.password() // Create a strong password
4
likes
140
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

Advanced, easy-to-use random generator for Dart with simple syntax. Ideal for efficient randomness in code.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on rand