Is there a way to get the value of a HashMap randomly in Java?
Usually you do not really want a random value but rather just any value, and then it's nice doing this:
Object selectedObj = null; for (Object obj : map.values()) { selectedObj = obj; break; }