Update randPic

Re-arranged some variables.