Random - GlitchedSouls/AHK-Guide GitHub Wiki
Random, uses the Mersenne Twister random number generator, MT19937, written by Takuji Nishimura and Makoto Matsumoto, Shawn Cokus, Matthe Bellew and Isaku Wada to create a random number between a Min and Max value.
Random, OutputVar, Min, Max
Generating a random number.
To generate a random number between a 1 and 10, do:
Random, RandomNumber, 1, 10
To generate a random coordinate inside an area, do:
Random, x, 100, 200 ; lowest x coordinate, highest x coordinate
Random, y, 100, 200 ; lowest y coordinate, highest y coordinate
In the previous Window Spy Wiki Guide tutorial, it explains how to find the x, y coordinates.