Anybody now how to randomize 5 blocks?????
Author 
Message 
johnbobbit

Posted: Sun Jan 18, 2004 12:05 pm Post subject: Anybody now how to randomize 5 blocks????? 


thanks to some kind person who read my message i was able to get this far. I am trying to make my userInput procedure run
5 different sized boxes appear on the screen, each a different color according to size. The catch is that each time the program is run the order of the boxes has to change. I was unable to do this so can someone read my code and tell me how please.
thanks
%user input
procedure userInput
var x:array 1..5 of int:=init(60,80,100,120,140)
var y:array 1..5 of int:=init(60,80,100,120,140)
var space:array 1..5 of int:=init(50,20,110,220,350)
for i:1..5
randomize
drawfillbox(space(i)+x(i),100,space(i)+x(i)+x(i),y(i)+100,i)
end for
end userInput
userInput 





Sponsor Sponsor



shorthair

Posted: Sun Jan 18, 2004 2:20 pm Post subject: (No subject) 


ONCE again , ive told you before man , your gonna get into trouble soon , change your topic name, we know you need help because your in the help forum , 






