Build hashes of arbitrary weights and randomly sample from it by weight