rand函数

来源:互联网 发布:php发送post请求 编辑:程序博客网 时间:2024/05/02 19:16

在PB中调用messagebox('',string(rand(5)))每次都返回固定的值,并不是随机数。正常的方式如下:

Randomize ( integer(string(now(),'hhmmss')) )

messagebox('',string(rand(5)))

原创粉丝点击