static B randomValue(Map map) { if (map == null) null; A key = random(keys(map)); ret key == null ? null : map.get(key); }