Actually you can'T explain creating how to randomly generate a map in short time.
First it depends how complex your world is. You need to make sure that your map is "valid".
For example when you have a 2D map of an world full of islands:
You need to ask whether a tile is part of the shore, is in the middle of the sea or land.
When you randomize everything, the computer still makes some crazy thinks like supertiny islands or islands with a very stupid shape. So you have to tell your computer the maximum/minimum size of an island.
And then you decide you also want rivers in your world of islands, which will be even more complicated.
So I think it's impossible to tell you how to do it. But I wouldnt do it with c2 but with a plugin.