delu.random# Random sampling utilities. seed Set diverse global random seeds in random, numpy and torch. get_state Aggregate the global random generator states from random, numpy and torch. set_state Set the global random number generator states in random, numpy and torch. preserve_state A decorator and context manager for preserving the global random generators state.