关于随机数的问题 [英] Questions about random numbers
问题描述
Hello Guys,
这不是一个直接的问题,而是一个我希望在对其进行测试之前充分了解的问题。 />
我打算生成伪随机数,我正在研究提供随机函数的最佳种子。在网上看到有几种种子,但我想要一些提供良好的学术支持,这已经被广泛使用,并且仍然被认为是最好的。
我想知道这些方法,并希望查看有关n添加功能的信息,即,是否有经过验证的文档,说明谁创建了这些方法,考虑的优势等等。
我也会说我发现了以这种方式创建种子:Datetime.Now.Ticks;
想知道这个刻度是否给了我很大的支持来提供我的随机,以及其他有用的信息。我基本上也是那些工作并使用这些函数生成伪随机数的人的意见。
我将非常感谢澄清。
Hello Guys,
this is not really a direct question, but a question that I would like to be well informed before basing my tests on it.
I am intending to generate pseudo-random numbers, which I'm researching the best seed to feed the Random function. 've seen on the net there are several seeds, but I want some that provide a good academic support, which has been widely used over time and is still considered the best.
I want to know these methods, and want to see information for n addition function, ie, if there is proven documentation of who created these methods, the strengths that were taken into account, etc..
I would also say that I found out about create the seed this way: Datetime.Now.Ticks;
was wondering if this tick gives me a great support to feed my random, among other useful information. what I also basically are opinions of those who work and have worked with these functions to generate pseudo-random numbers.
I would appreciate a clarification.
推荐答案
ticks方法不是伪随机的。它是真正随机的,至少是你手动启动你的应用程序(而不是从某些脚本)。是的,这是一个好种子,为什么不呢?
-SA
The ticks approach is not pseudo-random. It is truly random, at least is you start your application manually (not from some script). Yes, this is a good seed, why not?
—SA
这篇关于关于随机数的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!