7DRL - Generating the Grid

My first official day on the 7DRL (7-day roguelike) game development challenge and I ended up cleaning up some old mental cobwebs on how to generate a grid and a player spawn. The challenge ends on Sunday, so I have a few more days to work on this guy.

The concept is simple and within the constraints of being practical. Practical, in this case, is being a dad of two young boys and working full-time. Outside of an hour at lunch at ~40 minutes on the train, I don't have much more time to work on things.

Now I need to figure out how to generate a random number of walls and treasure spots. While I could simply randomly pick a different x and y, there still is the possibility the same spot gets called on multiple times and overrides the previous value.