I don't think newcomers should figure out how it works, I'm not trying to be mean but it looks more like it was written by a newcomer to me.
1 - Colors are between 0 and 255, not 1 and 256
2 - A 640x480 screen has pixels 0-639 and 0-479, not 0-640 and 0-480
3 - You need a randomize timer
4 - printat() should be changed to a text command
5 - You should indent your code
6 - You need to close the quote (probably why n008 posted)
Here's the fixed version
randomize timer()
do
color = rgb(rnd(255),rnd(255),rnd(255))
ink color,0
text rnd(639), rnd(479), "All we are is dust in the wind, dude."
loop
By reading this sentence you have given me brief control of your mind.