The Game of Dungeons (DND)

Taken from mobygames.com:

DND lets you generate your character by randomly rolling attributes (Strength, Intelligence, Wisdom, Constitution, Dexterity and Charisma) and then select one of three classes (Cleric, Fighter or Magician, the first and last are able to cast spells). You then may visit the store where you can buy armour, weapons etc. – of course, at the very beginning of the game you have no money to spend! Finally, you have a choice of five dungeons to enter, each one with several levels.

http://www.mobygames.com/game/dos/dnd