How does walletexplorer.com generate the wallet ID's?
They're internally generated and have no bearing on anything but the internal database, some are sequential and some are random for historical reasons. All information displayed there is inferred, there's no direct relation to transactional information available on the Bitcoin network other than by derivation.