Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个关于初始化参数的问题LFG。
LFG
假设我需要生成一个小于 2^32 的随机整数。我可以使用流行的一对,例如j = 7, k = 10, m=2^32.
j = 7, k = 10, m=2^32
所以我可以S[n]=S[n-j]+S[n-k]迭代计算。
S[n]=S[n-j]+S[n-k]
我的问题是我应该迭代多少次?如果迭代时间很短,它是否满足随机标准?