RandomUniqNum()

作者: Laszlo, Invalid User 最近更新时间: 20050824


Generates a comma separated list of integers. It can be specified the minimum, the maximum and the count of numbers to get.

RandomUniqNum(Min,Max,N)

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

备注

Laszlo is the original author of this script. He posted this script with a detailed description firstly at
http://www.autohotkey.com/forum/viewtopic.php?t=3004

Later the Invalid User made a function from this script at
http://www.autohotkey.com/forum/viewtopic.php?t=5013
and Laszlo optimized it more.

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

许可

不存在

示例

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

; Generate a comma separated list of 5 integers between 1 and 100.
MsgBox % RandomUniqNum(1, 100, 5)
Return