Is there a way to get the value of a HashMap randomly in Java?
Should you need to draw futher values from the map without repeating any elements you can put the map into a List and then shuffle it.
List valuesList = new ArrayList(map.values()); Collections.shuffle( valuesList ); for ( Object obj : valuesList ) { System.out.println( obj ); }