Skip to content

Commit

Permalink
Merge pull request #10 from KOGI/bugfix/generics-for-random-element
Browse files Browse the repository at this point in the history
Add generics to `randomGenerator.element()`
  • Loading branch information
drager authored May 25, 2019
2 parents 3c662b3 + 42cd5a7 commit 48a17c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/random_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class RandomGenerator {
const RandomGenerator();

/// Plucks a random element from the given [list].
element(List list) {
T element<T>(List<T> list) {
return list[_rng.nextInt(list.length)];
}

Expand Down

0 comments on commit 48a17c2

Please # to comment.