$RandomState

自从版本6.0开始,$RandomState 被范围构件 BlockRandom 所取代.

$RandomState

给出 Random 使用的伪随机生成器的内部状态的表示.

更多信息

  • $RandomState的值随每次调用 Random 而改变.
  • 可以使用 s=$RandomState 明确存储要恢复的 $RandomState$RandomState=s 的值.
  • $RandomState 的值总是从确定概率的大集合中选出的一个长整数. 您可以仅将这个集合中的值分配给$RandomState.
  • 在计算 expr 时,可以使用 Block[{$RandomState},expr] 局部化 $RandomState 的值.
Wolfram Research (1996),$RandomState,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$RandomState.html.

文本

Wolfram Research (1996),$RandomState,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$RandomState.html.

CMS

Wolfram 语言. 1996. "$RandomState." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/$RandomState.html.

APA

Wolfram 语言. (1996). $RandomState. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/$RandomState.html 年

BibTeX

@misc{reference.wolfram_2024_$randomstate, author="Wolfram Research", title="{$RandomState}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/$RandomState.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$randomstate, organization={Wolfram Research}, title={$RandomState}, year={1996}, url={https://reference.wolfram.com/language/ref/$RandomState.html}, note=[Accessed: 22-December-2024 ]}