return random Entry or the default if map is empty
MapEntry<K, V> randomEntryOr(MapEntry<K, V> def) => randomEntryOrNull() ?? def;