Rand()

作者: `{VxE`} 最近更新时间: 20100219


A wrapper to Ahks internal Random command.

Rand( a=0.0, b=1 )

关于函数的参数和返回值, 请参阅其源码或 此文档.

备注

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?p=333325#333325

许可

此函数(集)是基于 Public Domain 许可的开源项目. 想了解许可详情, 请参见 [VxE]-license.txt

示例

; #Include Rand.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

; Random integer between 50 and 100 (typical use)
MsgBox % "Rand: " . Rand(50, 100)