[core] Implements ZipfianGenerator.