NaN?

I have a little script thing that is meant to pick 4 random numbers and put them in four random boxes

however just randomly it outputs NaN and I have absolutely no idea what it is?

could some one have a quick peek what is wrong with my script!