Please forgive my ignorance. How does this work? At first glance, it looks like a calculated GOTO, but I feel I missed something.
I'm thoroughly confused as well :)
R = INT(RND * 3) + 1
Value is either 1, 2, or 3 for R.
R = 1, 2, 3
Sorry Terry and CBTJD late at night my brain starts a race with my fingers and typing.
Steve has the interpretation, OP could as easily written fnum% = Int(rnd*3) + 1 without all the run around and goto's and such.
IF num1 = 1 AND num2 = 3 THEN '1 BEATS 3
num1 = WINNER
ELSEIF num1 > num2 THEN '2 BEATS 1, 3 BEATS 2
num1 = WINNER
ELSE 'ELSE
num2 = WINNER
END IF
And Steve has a solution to name winner. I think we might do better but I have to work it out myself.
I am keeping in mind OP is setting up to do a Rock, Paper, Scissors contest with the computer.