Random function?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
SmileH

Random function?

24 Apr 2018, 20:34

Hi, I want to make a function that returns a random number between 2 given numbers. Thanks in advance.
gregster
Posts: 9001
Joined: 30 Sep 2013, 06:48

Re: Random function?

24 Apr 2018, 20:46

You could directly use the old-fashioned command named Random (examples included) - or you could wrap it into an user-defined function, if you like it hip.

If you are new, the tutorial and the Usage and Syntax, FAQ and Quick Reference sections of the docs could help with the general stuff.

Have a try. If it doesn't work, show us the code you tried...

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, mcd, Nerafius and 127 guests