title: how to select random element from Map in dart?
body: <p>How to select random key (element) from Map?</p>
  
  <p>I can do it using map.keys.toList(), as in the code below, but I wonder if there is more direct way? </p>
  
  <pre><code>import "dart:math";
  
  void main() {
      var map = {'a' :1, 'b':2, 'c':3};
      final _random = new Random();
      var keys = map.keys.toList();
      var element = keys[_random.nextInt(keys.length)];
      var r = map[element];
      print(r);
  }
  </code></pre>