You can put 'FindNormalRandoms' in your script; this will find the randoms and it will (normally) solve them. But you've got to know that not all randoms are currently solved and that the Box-random fails one time out of 2.
If you want an all-in-one solution, you can use this procedure(I know it's basic, but It will probably solve most of the randoms you encounter.)
SCAR Code:
procedure FindRandom;
var i:integer;
begin
if not(LoggedIn) then Exit;
for i:=1 to 3 do
begin
case i of
1: if FindMod then
begin
writeln('Found Moderator.');
TerminateScript;
end;
2: FindNormalRandoms;
3: if FindFight then
begin
RunAway(RunDirection, true, 1, 5500+Random(1000));-->Remember to declare Rundirection in Const.
end;
end;
end;
end;
EDIT: If you need more help you can PM or take a look at this tut