Trying a script in the game engine - error

I get an error “Return without exception set” but I don’t know what that means. I asked in the game forum but no replies. I just want to print a random integer. I import random and randint, then create a variable random integer with this line:

randx = randint(1,20)