CLS
n = 10
DIM a(n), b(n)
RANDOMIZE TIMER
FOR i = 0 TO n
a(i) = INT(RND * 4)
b(i) = INT(RND * 4)
NEXT
FOR t = 0 TO n
PRINT a(t); ":"; b(t),
IF a(t) > b(t) THEN
PRINT "win"
w = w + 1
ELSEIF a(t) = b(t) THEN
PRINT "draw"
n = n + 1
ELSE
PRINT "lose"
l = l + 1
END IF
NEXT
PRINT "wins="; w, "draws="; n, "loses="; l
PRINT "score="; w * 3 + n
Тестирование выполнено в программе QB64 ( Скачать )