Random numbers failing

So I have been able to generate random numbers before, but now they just seem to be spazzing out randomly.

I created 4 dynamic textboxes with the variable names item1, item2, item3 and item4. The code that I have used on the frame is:

item1=random(5)+1
item2=random(10)+1
item3=random(3)+1
item4=random(201)

But whenever I run the program, sometimes it generates a number between 1 and 4, sometimes it doesn’t generate anything and the textbox stays blank… It seems to work fine when I only have one textbox though… Help?