Change the salesman ID to rand (0, 999999) to replace the ID with a random number.
将销售员ID更改为RAND(0,999999),以用随机的数字来替换ID。
First, the rand (5, 5) builds a matrix of size 5, 5 containing random values (which I scale to a maximum of 5).
首先,rand(5,5)会构建一个5,5大小的矩阵,其中包含了一些随机值(其最大值为5)。
As a side note, RANDOM. ORG has a nice page on RNG with another example of "patterns" created by the PHP rand function.
作为一个方面说明,random.org有一个很好的关于RNG另一个例子用PHP创建的“模式”rand功能。
The rand function generates a random integer.
函数的作用是:产生一个随机整数。
The rand function generates a random integer.
函数的作用是:产生一个随机整数。
应用推荐