I've long noticed that definitions would sometimes be outside the current viewport. viewport dimensions are in viewport units, not surface units.
M7SCV2NITKRNNVCQSSY6MNPY3ODFKWGA2WRGDFDLTN3SXM6CAAWAC
YASTFHTECB4SLOHBRREMWGEVDSNUC2USP7P4PJLXZPKC3J5G3CKQC
JBMY3NW7Z4SQWVWDFRKXSNC4HLEVCZJVFOFPW5VTY2CKWQNVKKGQC
result.x = math.random(Viewport.x, Viewport.x+Viewport.w)
result.x = math.random(Viewport.x, Viewport.x+iscale(App.screen.width))
result.y = math.random(Viewport.y, Viewport.y+Viewport.h)
result.y = math.random(Viewport.y, Viewport.y+iscale(App.screen.height))