chance 3.0.0 copy "chance: ^3.0.0" to clipboard
chance: ^3.0.0 copied to clipboard

A minimalist collection of random number generator functions

example/main.dart

import 'package:chance/chance.dart';

int foo = randomInt(3, 12); // 6

double bar = randomDouble(3, 12); // 10.9634128828224

bool lorem = randomBool(.2); // false

String ipsum = randomItem(['cat', 'dog', 'tiger']); // 'cat'

String? dolor = randomItemOrNull([]); // null
10
likes
0
points
73
downloads

Publisher

verified publishervimuser.com

Weekly Downloads

A minimalist collection of random number generator functions

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on chance