dart_random_choice library

A library for generating a random choice from an iterable. Inspired by numpy.random.choice

Functions

randomChoice<T>(Iterable<T> options, [Iterable<double> weights = const []]) → T
Selects a random element from options with optional weights.