touch.touch.random_tap
Declaration
lua
touch.random_tap(x1, y1, x2, y2)
Description
Tap at random point within rectangle.
Parameters
`x1,y1` — top-left corner
`x2,y2` — bottom-right corner
Return Values
`number` — actual x
`number` — actual y
Example
lua
local x, y = touch.random_tap(100, 100, 200, 200)