random(mapping) was terrible. It would first pick a random bucket and walk until it got one with content, making a bucker more likely to be selected if it was preceeded by empty ones. Then it would select randomly an item from the bucket, making items in more crowded buckets less likely to be selected. Now it simply iterates over all items for a random number of items. Probably slower, but no one is using random on mappings anyways.