Variables inside a function

Hi guys!

I have 16 variables that are set after finishing loading XML!
The variables determine 16 random values and I need to be able to use those values outside of the function that set them.

I´m dying to know how that is done, anyone kind enough to share me this knowledge?

Thanks in advance

/rundevo