PLEASE HELP ME WITH MY RANDOM NUMBER STATEMENT

HI RECENTLY I STARTED MAKING A NUMBER GAME WHERE I PICK A NUMBER BETWEEN 1 AND 10 AND AND I HAVE THREE GUESSES AND WHEN THE PERON GETS IT WRONG IT IS SUPPOSED TO PICK A NEW NUMBER IT WORKED BEFORE I PUT IN A COUPLE OF NEW LOOP STATEMENTS BUT NOW IT KEEPS THE SAME NUMBER ALL TEN TIMES. THE RANDOM NUMBER STATEMENT I AM USING IS AS FOLLOWS...

RANDOMIZE
LET NUM = int (10 * rnd) + 1

I WAS JUST HOPING THAT SOMEONE COULD HELP ME PLEASE.

THANK YOU IN ADVANCE.