It's fairly well commented so hopefully it's fairly easy to understand, let me know though!
This is probably pretty useful if you want to generate and then save a random map for example, or just saving level scores, times etc.
HTML - Here
CAPX - Here
Hope somebody finds it helpful! =)
Also, this example is only for 2D Arrays, but you could easily add another loop in for 3D if you wanted =)