API symbolscudaCopyCopy as MarkdownCopy page linkView MarkdownDownload .mdOpenAIOpen in ChatGPTClaudeOpen in ClaudePerplexityOpen in PerplexityGrokOpen in Grok tensorplay.cuda.random.seed_all tensorplay.cuda.random.seed_all() → None[source] Set the seed for generating random numbers to a random number on all GPUs. It’s safe to call this function if CUDA is not available; in that case, it is silently ignored. Help improve this pageFound an error, an unclear step, or a missing example?Was this page helpful?YesNoSuggest an editReport an issuetensorplay.cuda.random.seedSet the seed for generating random numbers to a random number for the current GPU.tensorplay.cuda.random.set_rng_stateSet the random number generator state of the specified GPU.