>
> *Mouse re 100 220 ld mo -300 -200 lu
>
>
> Maybe something like this:
>
> *Mouse re 100 220 ld mo 0 rand(15to-15) lu
The following will move random number of pixels +-50 from current x,
with limit of zero and screen size. You should be able to adapt to
your need
win.mouse(max(0, min(xscreen, xmouse+random(100)))
If you want to mix *mouse commands and an expression to generate a
number, the general form would be
win.mouse("commands"++expression++"commands")
The following will generate a random rgb color(
randcol = (random(256)<<16) + (random(256)<<8) + random(256)