R provides a function set.seed to seed the RNG with an integer. The standard package digest can hash objects with a variety of hash algorithms, and can output an ASCII representation of the hash or a vector of raw bytes, but can't produce an integer. How can I use the hash of an arbitrary object to seed the RNG?
Aucun commentaire:
Enregistrer un commentaire