How do I make a random number keep on changing like every few seconds

I’ve tried following tutorials but the random number gen is most of the time invalid for my use. Here’s my project [ Glitch :・゚✧ ] and search randomshape in definitions.js under lib.
there will be some ran2.choose function but they only change on every server restart. How do I make it change while in game?