User interface 为什么REBOL中的GUI不能使用random?
这个非常简单的脚本:User interface 为什么REBOL中的GUI不能使用random?,user-interface,random,rebol,User Interface,Random,Rebol,这个非常简单的脚本: REBOL [] view layout [ button "Rand" [alert to-string random 100] ] 给出了以下结果: 第一轮:95,52,80,96 第二轮:95,52,80,96 第三轮:95,52,80,96。。。 这显然不是随机的,因为相同的数字重复了一次又一次 我应该向REBOL网站发布错误报告吗 有没有简单的方法来修复它 您是否也在重新启动Rebol?Random每次都会被植入种子,因此在这种情况下,看到相同的
REBOL []
view layout [
button "Rand" [alert to-string random 100]
]
给出了以下结果:
- 第一轮:95,52,80,96
- 第二轮:95,52,80,96
- 第三轮:95,52,80,96。。。
- 我应该向REBOL网站发布错误报告吗
- 有没有简单的方法来修复它
REBOL []
random/seed now/precise
view layout [
button "Rand" [alert to-string random 100]
]