Make platforms move up/down

I have a student who I can’t seem to help much. He wants to his various platforms to move up and down. He’s not sure if he wants them to do so in a set pattern or randomly. Can someone help and provide us with sample code? thanks so much!