I've been working on a randomly generated dungeon crawler game, but cant seem to grasp how to use 2D arrays to create randomly generated worlds. I was thinking I could do getRandomNumber then if x is 1,2,3,etc. there could be different worlds associated with those numbers and everytime you go through a door, it does it again and generates a new room. I am just beginning with java and have only learned the basics, so I would appreciate it if someone gave me a tutorial on how to use 2D arrays to create randomly generated dungeons.
Thank you,
ArchMage

