本文介绍了以快速顺序生成2个随机数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从PHP或

mysql快速生成2个随机数。

我无法做到。我从PHP的mt_rand()和mysql的RAND()获得了相同的数字



任何想法?


我想我可以使用当前的rancom号作为下一个

随机数的种子。但这真的有用吗?

I need to generate 2 random numbers in rapid sequence from either PHP or
mysql.
I have not been able to do either. I get the same number back several times
from PHP''s mt_rand() and from mysql''s RAND().
any ideas?

I suppose I could use the current rancom number as the seed for the next
random number. but would that really work?

推荐答案




这篇关于以快速顺序生成2个随机数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 18:13