Rand()

Author: `{VxE`} Last Modified: 20100219


A wrapper to Ahks internal Random command.

Rand( a=0.0, b=1 )

For the functions's parameters and return value, please see it's source code or the document.

Remarks

Lacks an external documentation. I added a very basic one by me.

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/topic42682.html

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?p=333325#333325

License

The functions is an open source item under the Public Domain license.
For details, please see `{VxE`}-license.txt

Example

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

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