delu.random¶ An extension to torch.random. seed Set diverse global random seeds in random, numpy and torch. get_state Aggregate the global RNG states from random, numpy and torch. set_state Set the global RNG states in random, numpy and torch. preserve_state Save the global RNG states before entering a context/function and restore it on exit.