Quote:

Close you say? What about scope? Debatable as a best practice.




I dont understand what you mean.....

looks to me like he has a set number of global variables that he wants to randomize in the fly. a function used in the above method is perfect for that. A function does not always have to return data. It is cheap efficiant use of code.

Bryce