rand 3.1.0
rand: ^3.1.0 copied to clipboard
Powerful random data generator for Dart. Generate numbers, text, names, passwords, colors, dates, and more. Perfect for testing, mocking, and games.
Changelog #
3.1.0 #
duration()now uses named parameters:duration(max:, min:)nullable()parameter renamed:probability→nullChanceboolean()parameter renamed:probability→trueChance- Removed
id()— usenonce()(now has default length of 16) latitude()/longitude()now use decimal places (not significant figures)
3.0.1 #
integer()andfloat()now use named parameters (min:,max:)sample()replacesweightedRandomizedArray()charCode()andsecureCharCode()replacechar()andcharSecure()- Removed
dateTimeYear()— usedateTime(DateTime(year1), DateTime(year2)) - Collection params renamed to
from - Password params:
lowercase,uppercase,digits,symbols color(),colorDark(),colorLight()for CSS colorsCSSColorsenum with 148 named colorsArgumentErrorexceptions instead of assertions- Comprehensive tests with
checkspackage
2.0.3 #
- Updated dependencies
2.0.2 #
- Fixed
boolean()regression - Fixed max int for web
2.0.1 #
- Fixed
nullable()default value
2.0.0 #
- Removed
documentId,uid— useid() - Renamed
mayBeNull→nullable - Added
alias,firstName,lastName,city,latitude,longitude
1.0.0 #
- Initial release