multiple_random_choice 0.1.0 copy "multiple_random_choice: ^0.1.0" to clipboard
multiple_random_choice: ^0.1.0 copied to clipboard

outdated

A multiple randomly choicing function library

A multiple randomly choosing function library

Features #

  • generate multiple random choice under equally probability from options
  • generate multiple random choice with weight from options

Usage / Example #

final m = {
  'A': 1.0,
  'B': 2.0,
  'C': 10.0,
  'D': 20,
  'E': 1,
};
final s = randomMultipleWeightedChoice<String>(m, 3);
print(s);
// {C,D,B}

You can see more examples in example folder.