rand 1.0.3 copy "rand: ^1.0.3" to clipboard
rand: ^1.0.3 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 20% probability
Rand.dateTime(2001, 2023) // A random 21th century [DateTime]
Rand.password() // Create a strong password
3
likes
160
pub points
70%
popularity

Publisher

unverified uploader

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on rand